]> sigrok.org Git - pulseview.git/blobdiff - pv/data/decode/decoder.hpp
Fix #1596 by making memory management more robust
[pulseview.git] / pv / data / decode / decoder.hpp
index 6e11e83f374e23e4c4487ff2cd2148fbb0143ddc..86a371f26c67c11d72abfe80a3715cf2292921ae 100644 (file)
@@ -82,7 +82,7 @@ struct DecodeChannel
        uint16_t id;     ///< Global numerical ID for the decode channels in the stack
        uint16_t bit_id; ///< Tells which bit within a sample represents this channel
        const bool is_optional;
-       const pv::data::SignalBase *assigned_signal;
+       shared_ptr<const pv::data::SignalBase> assigned_signal;
        const QString name, desc;
        int initial_pin_state;
        const shared_ptr<Decoder> decoder_;