projects
/
pulseview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
728e5ef
)
Make SigSession release it's device on destruction
author
Joel Holdsworth
<joel@airwebreathe.org.uk>
Sun, 12 May 2013 16:53:59 +0000
(17:53 +0100)
committer
Joel Holdsworth
<joel@airwebreathe.org.uk>
Sun, 19 May 2013 08:45:59 +0000
(09:45 +0100)
pv/sigsession.cpp
patch
|
blob
|
history
diff --git
a/pv/sigsession.cpp
b/pv/sigsession.cpp
index 3e0801bf1f6ffa295829f64bb35d5d337cca14cf..80802e5c7123d395edd16fcf46d8515e27c05b2c 100644
(file)
--- 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;
}