projects
/
platform
/
upstream
/
glib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f077127
)
Don't leak references to the menus
author
Matthias Clasen
<mclasen@redhat.com>
Sun, 25 Dec 2011 04:01:17 +0000
(23:01 -0500)
committer
Matthias Clasen
<mclasen@redhat.com>
Sun, 25 Dec 2011 04:01:17 +0000
(23:01 -0500)
gio/gmenumarkup.c
patch
|
blob
|
history
diff --git
a/gio/gmenumarkup.c
b/gio/gmenumarkup.c
index 867487d51c59de1bf1fe908ad5ca44e07ec64a89..4cdd985f8ce6ea4e4531f459ef46cce43e56be85 100644
(file)
--- a/
gio/gmenumarkup.c
+++ b/
gio/gmenumarkup.c
@@
-205,6
+205,7
@@
g_menu_markup_start_element (GMarkupParseContext *context,
if (state->objects)
g_hash_table_insert (state->objects, g_strdup (id), g_object_ref (menu));
}
+ g_object_unref (menu);
return;
}
@@
-225,6
+226,7
@@
g_menu_markup_start_element (GMarkupParseContext *context,
if (state->objects)
g_hash_table_insert (state->objects, g_strdup (id), g_object_ref (menu));
}
+ g_object_unref (menu);
return;
}
@@
-280,6
+282,7
@@
g_menu_markup_start_element (GMarkupParseContext *context,
if (id != NULL && state->objects)
g_hash_table_insert (state->objects, g_strdup (id), g_object_ref (menu));
+ g_object_unref (menu);
}
return;