summaryrefslogtreecommitdiff
path: root/gi/object.c
diff options
context:
space:
mode:
authorJasper St. Pierre <jstpierre@mecheye.net>2012-05-25 16:33:26 -0400
committerJasper St. Pierre <jstpierre@mecheye.net>2012-05-25 16:36:15 -0400
commit48c979565ebe524c722c770aae58ad4c49c4f010 (patch)
tree45b78d989f4cce62acdc59df321a0b0e818727ec /gi/object.c
parent085fb4d3262e7d427867b0ac3d46f465785d7f88 (diff)
downloadgjs-48c979565ebe524c722c770aae58ad4c49c4f010.tar.gz
Fix various memory leaks
Found with make valgrind-check. We should run it more often. https://bugzilla.gnome.org/show_bug.cgi?id=676843
Diffstat (limited to 'gi/object.c')
-rw-r--r--gi/object.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gi/object.c b/gi/object.c
index e2bd0144..95109db5 100644
--- a/gi/object.c
+++ b/gi/object.c
@@ -2157,6 +2157,8 @@ gjs_register_type(JSContext *cx,
&type_info,
0);
+ g_free(name);
+
g_type_set_qdata (instance_type, gjs_is_custom_type_quark(), GINT_TO_POINTER (1));
/* create a custom JSClass */