From: Marcus Comstedt Date: Sat, 17 May 2014 10:37:15 +0000 (+0200) Subject: Declare a virtual destructor for SignalData X-Git-Tag: pulseview-0.3.0~581 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=313b4901cd15bd87b20870f0354a683a5fc447a5;p=pulseview.git Declare a virtual destructor for SignalData This fixes the following error: error: deleting object of polymorphic class type 'pv::data::Analog' which has non-virtual destructor might cause undefined behaviour [-Werror=delete-non-virtual-dtor] Also, the same error for pv::data::Logic. --- diff --git a/pv/data/signaldata.h b/pv/data/signaldata.h index 0aa3b348..280874c4 100644 --- a/pv/data/signaldata.h +++ b/pv/data/signaldata.h @@ -30,6 +30,7 @@ class SignalData { public: SignalData(); + virtual ~SignalData() {} public: double samplerate() const;