projects
/
pulseview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1e5faac
)
Enum: Reference gvariants in the values list
author
Joel Holdsworth
<joel@airwebreathe.org.uk>
Tue, 11 Mar 2014 23:17:45 +0000
(
00:17
+0100)
committer
Joel Holdsworth
<joel@airwebreathe.org.uk>
Thu, 13 Mar 2014 17:00:33 +0000
(17:00 +0000)
pv/prop/enum.cpp
patch
|
blob
|
history
diff --git
a/pv/prop/enum.cpp
b/pv/prop/enum.cpp
index 71cd431548da771ff5e3a9289480f62c5d5b71d2..6439a725c7adbdca16d90865c622da719fe9ef3b 100644
(file)
--- 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<GVariant*, QString> >::const_iterator i =
+ _values.begin(); i != _values.end(); i++)
+ g_variant_ref((*i).first);
}
Enum::~Enum()