projects
/
pulseview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
733eee0
)
Check for device instances before blindly trying to release them.
author
Bert Vermeulen
<bert@biot.com>
Sun, 3 Aug 2014 12:24:02 +0000
(14:24 +0200)
committer
Bert Vermeulen
<bert@biot.com>
Sun, 3 Aug 2014 12:24:02 +0000
(14:24 +0200)
pv/sigsession.cpp
patch
|
blob
|
history
diff --git
a/pv/sigsession.cpp
b/pv/sigsession.cpp
index d89ca61c0d0d44863e180df07da6ac0802713f1c..201892889abf97d05823529d8d3cf7e191eb0a2b 100644
(file)
--- 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;