GMenuMarkup: call g_variant_ref_sink()

Watch out for them floating variants !
They are easily consumed...
This commit is contained in:
Matthias Clasen 2012-01-23 19:21:22 -05:00
parent ae3b9b16ce
commit 99c379f514

View File

@ -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);
} }
} }