mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 03:16:17 +01:00
GMenuMarkup: call g_variant_ref_sink()
Watch out for them floating variants ! They are easily consumed...
This commit is contained in:
parent
ae3b9b16ce
commit
99c379f514
@ -345,6 +345,7 @@ g_menu_markup_end_element (GMarkupParseContext *context,
|
|||||||
{
|
{
|
||||||
g_variant_unref (value);
|
g_variant_unref (value);
|
||||||
value = g_variant_new_string (msgstr);
|
value = g_variant_new_string (msgstr);
|
||||||
|
g_variant_ref_sink (value);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user