From: Joel Holdsworth Date: Tue, 11 Mar 2014 23:17:45 +0000 (+0100) Subject: Enum: Reference gvariants in the values list X-Git-Tag: pulseview-0.2.0~20 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=1d7edbbdee97217630fed14cc39883d715633f26;p=pulseview.git Enum: Reference gvariants in the values list --- diff --git a/pv/prop/enum.cpp b/pv/prop/enum.cpp index 71cd4315..6439a725 100644 --- a/pv/prop/enum.cpp +++ b/pv/prop/enum.cpp @@ -37,6 +37,9 @@ Enum::Enum(QString name, _values(values), _selector(NULL) { + for (vector< pair >::const_iterator i = + _values.begin(); i != _values.end(); i++) + g_variant_ref((*i).first); } Enum::~Enum()