From: Gerhard Sittig Date: Tue, 2 Jan 2018 18:51:22 +0000 (+0100) Subject: DecodeSignal: Void a session pointer after destroy() call X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=c5f9553c0b1ccd134b0d8f37b1b6c31ef3be114c;p=pulseview.git DecodeSignal: Void a session pointer after destroy() call Fixup an error path when starting a created decoder session fails. --- diff --git a/pv/data/decodesignal.cpp b/pv/data/decodesignal.cpp index eb7a0d3b..2a3ad14b 100644 --- a/pv/data/decodesignal.cpp +++ b/pv/data/decodesignal.cpp @@ -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; }