summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Zeuthen <davidz@redhat.com>2011-02-15 11:12:27 -0500
committerDavid Zeuthen <davidz@redhat.com>2011-02-15 11:12:27 -0500
commite3c86613fb5b9888b5271a1f6833d2f807500ca9 (patch)
treefc9d129733b4762c767a7a886ad9a051e7b9b13b
parent58b0d3aeb4c48b889e616c68dbd27167f9cf11f8 (diff)
Set the right free_func for bytestrings
We were default to g_variant_unref (instead of g_free) which was causing memory corruption... Signed-off-by: David Zeuthen <davidz@redhat.com>
-rw-r--r--src/dbustypes.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/dbustypes.py b/src/dbustypes.py
index 7b464f8..e04b4a7 100644
--- a/src/dbustypes.py
+++ b/src/dbustypes.py
@@ -127,6 +127,7 @@ class Arg:
self.ctype_in = 'const gchar *'
self.ctype_out = 'gchar **'
self.gtype = 'G_TYPE_STRING'
+ self.free_func = 'g_free'
self.format_in = '^ay'
self.format_out = '^ay'
elif self.signature == 'as':