From: Bert Vermeulen Date: Sun, 3 Aug 2014 12:24:02 +0000 (+0200) Subject: Check for device instances before blindly trying to release them. X-Git-Tag: pulseview-0.3.0~572 X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=commitdiff_plain;h=7f255cd64e5dd166188b1f1ae991d13b89adfe61 Check for device instances before blindly trying to release them. --- diff --git a/pv/sigsession.cpp b/pv/sigsession.cpp index d89ca61c..20189288 100644 --- a/pv/sigsession.cpp +++ b/pv/sigsession.cpp @@ -83,7 +83,8 @@ SigSession::~SigSession() // Stop and join to the thread stop_capture(); - _dev_inst->release(); + if (_dev_inst) + _dev_inst->release(); // TODO: This should not be necessary _session = NULL;