From 7f255cd64e5dd166188b1f1ae991d13b89adfe61 Mon Sep 17 00:00:00 2001 From: Bert Vermeulen Date: Sun, 3 Aug 2014 14:24:02 +0200 Subject: [PATCH] Check for device instances before blindly trying to release them. --- pv/sigsession.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pv/sigsession.cpp b/pv/sigsession.cpp index d89ca61..2018928 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; -- 2.30.2