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:
ae3b9b1
)
GMenuMarkup: call g_variant_ref_sink()
author
Matthias Clasen
<mclasen@redhat.com>
Tue, 24 Jan 2012 00:21:22 +0000
(19:21 -0500)
committer
Matthias Clasen
<mclasen@redhat.com>
Tue, 24 Jan 2012 00:24:10 +0000
(19:24 -0500)
Watch out for them floating variants !
They are easily consumed...
gio/gmenumarkup.c
patch
|
blob
|
history
diff --git
a/gio/gmenumarkup.c
b/gio/gmenumarkup.c
index a586f834a62d8266cf440f14e2d059cc3ca05e8b..3564c2e7bb6746dd3a34887e16280cba6a446218 100644
(file)
--- a/
gio/gmenumarkup.c
+++ b/
gio/gmenumarkup.c
@@
-345,6
+345,7
@@
g_menu_markup_end_element (GMarkupParseContext *context,
{
g_variant_unref (value);
value = g_variant_new_string (msgstr);
+ g_variant_ref_sink (value);
}
}