]> sigrok.org Git - pulseview.git/commitdiff
Destroy the decode session after use
authorJoel Holdsworth <redacted>
Tue, 15 Oct 2013 12:02:43 +0000 (13:02 +0100)
committerJoel Holdsworth <redacted>
Tue, 15 Oct 2013 22:10:48 +0000 (23:10 +0100)
pv/data/decoder.cpp

index 292430b6f0969290d206258bc2859fa10b0f041e..d8a538cbec9368ddffde92d474e2478d9027adbc 100644 (file)
@@ -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