Remove obsolete input module support.
[pulseview.git] / pv / sigsession.cpp
index d89ca61c0d0d44863e180df07da6ac0802713f1c..ac9c052b3bf9b8d50e66adac02efc670359fac4d 100644 (file)
@@ -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;
@@ -99,6 +100,9 @@ void SigSession::set_device(
 {
        using pv::device::Device;
 
+       if (!dev_inst)
+               return;
+
        // Ensure we are not capturing before setting the device
        stop_capture();