aboutsummaryrefslogtreecommitdiff
path: root/libqmenumodel
diff options
context:
space:
mode:
authorMarco Trevisan (Treviño) <mail@3v1n0.net>2016-10-25 20:29:53 +0200
committerMarco Trevisan (Treviño) <mail@3v1n0.net>2016-10-25 20:29:53 +0200
commitedfe13a5191e0df28575a7847e8ce94ac29a3e09 (patch)
tree3317cc33e4ca3f4169df01bdf82131f5d142a81a /libqmenumodel
parent64a2113a109dc9eb7644b82b5e5503c1147f1ccf (diff)
downloadqmenumodel-edfe13a5191e0df28575a7847e8ce94ac29a3e09.tar.gz
qmenumodel-edfe13a5191e0df28575a7847e8ce94ac29a3e09.tar.bz2
qmenumodel-edfe13a5191e0df28575a7847e8ce94ac29a3e09.zip
converter: free the strv container
Diffstat (limited to 'libqmenumodel')
-rw-r--r--libqmenumodel/src/converter.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/libqmenumodel/src/converter.cpp b/libqmenumodel/src/converter.cpp
index a7c3adf..483e646 100644
--- a/libqmenumodel/src/converter.cpp
+++ b/libqmenumodel/src/converter.cpp
@@ -67,6 +67,7 @@ QVariant Converter::toQVariant(GVariant *value)
list << QString::fromUtf8(sa[i]);
}
result.setValue(list);
+ g_free(sa);
} else if (g_variant_type_equal(type, G_VARIANT_TYPE_BYTESTRING)) {
gsize size = 0;
gchar *bs = g_variant_dup_bytestring(value, &size);