DecodeSignal: Void a session pointer after destroy() call

Fixup an error path when starting a created decoder session fails.
This commit is contained in:
Gerhard Sittig 2018-01-02 19:51:22 +01:00 committed by Uwe Hermann
parent ed6f8680ba
commit c5f9553c0b
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}