From 0f7849397159791fa0ac35c6065aab99756f7901 Mon Sep 17 00:00:00 2001 From: Joel Holdsworth Date: Sun, 12 May 2013 17:53:59 +0100 Subject: [PATCH] Make SigSession release it's device on destruction --- pv/sigsession.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pv/sigsession.cpp b/pv/sigsession.cpp index 3e0801b..80802e5 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; } -- 2.30.2