mirror of git://sigrok.org/pulseview
DecodeSignal: Void a session pointer after destroy() call
Fixup an error path when starting a created decoder session fails.
This commit is contained in:
parent
ed6f8680ba
commit
c5f9553c0b
|
@ -993,6 +993,7 @@ void DecodeSignal::start_srd_session()
|
|||
if (!di) {
|
||||
error_message_ = tr("Failed to create decoder instance");
|
||||
srd_session_destroy(srd_session_);
|
||||
srd_session_ = nullptr;
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue