summaryrefslogtreecommitdiff
path: root/girepository/girwriter.c
diff options
context:
space:
mode:
Diffstat (limited to 'girepository/girwriter.c')
-rw-r--r--girepository/girwriter.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/girepository/girwriter.c b/girepository/girwriter.c
index 7b255423..cc14280b 100644
--- a/girepository/girwriter.c
+++ b/girepository/girwriter.c
@@ -423,6 +423,7 @@ write_field_info (const gchar *namespace,
if (branch)
{
xml_printf (file, " branch=\"");
+ g_base_info_unref ((GIBaseInfo *)type);
type = g_constant_info_get_type (branch);
g_constant_info_get_value (branch, &value);
write_constant_value (namespace, type, &value, file);