]> sigrok.org Git - pulseview.git/commitdiff
Make SigSession release it's device on destruction
authorJoel Holdsworth <redacted>
Sun, 12 May 2013 16:53:59 +0000 (17:53 +0100)
committerJoel Holdsworth <redacted>
Sun, 19 May 2013 08:45:59 +0000 (09:45 +0100)
pv/sigsession.cpp

index 3e0801bf1f6ffa295829f64bb35d5d337cca14cf..80802e5c7123d395edd16fcf46d8515e27c05b2c 100644 (file)
@@ -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;
 }