From e3c86613fb5b9888b5271a1f6833d2f807500ca9 Mon Sep 17 00:00:00 2001 From: David Zeuthen Date: Tue, 15 Feb 2011 11:12:27 -0500 Subject: 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 --- src/dbustypes.py | 1 + 1 file changed, 1 insertion(+) 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': -- cgit v1.2.3