From: Joel Holdsworth Date: Sun, 12 May 2013 16:53:59 +0000 (+0100) Subject: Make SigSession release it's device on destruction X-Git-Tag: pulseview-0.2.0~362 X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=commitdiff_plain;h=0f7849397159791fa0ac35c6065aab99756f7901 Make SigSession release it's device on destruction --- diff --git a/pv/sigsession.cpp b/pv/sigsession.cpp index 3e0801bf..80802e5c 100644 --- a/pv/sigsession.cpp +++ b/pv/sigsession.cpp @@ -59,6 +59,10 @@ SigSession::~SigSession() _sampling_thread->join(); _sampling_thread.reset(); + if (_sdi) + _device_manager.release_device(_sdi); + _sdi = NULL; + // TODO: This should not be necessary _session = NULL; }