From: Joel Holdsworth Date: Tue, 15 Oct 2013 12:02:43 +0000 (+0100) Subject: Destroy the decode session after use X-Git-Tag: pulseview-0.2.0~242 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=baee87e3597c3e9ff49e6e457f5b932dcdcff9ed;p=pulseview.git Destroy the decode session after use --- diff --git a/pv/data/decoder.cpp b/pv/data/decoder.cpp index 292430b6..d8a538cb 100644 --- a/pv/data/decoder.cpp +++ b/pv/data/decoder.cpp @@ -65,6 +65,9 @@ Decoder::~Decoder() _decode_thread.join(); g_hash_table_destroy(_options); + + if (_session) + srd_session_destroy(_session); } const srd_decoder* Decoder::get_decoder() const