mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-19 18:00:09 +00:00
Use g_value_take_string to avoid redundant invoking g_free.
This commit is contained in:
parent
7ef003f7d4
commit
61a73b3df6
@ -2808,8 +2808,7 @@ gtk_widget_get_property (GObject *object,
|
||||
if (escaped && !pango_parse_markup (escaped, -1, 0, NULL, &text, NULL, NULL))
|
||||
g_assert (NULL == text); /* text should still be NULL in case of markup errors */
|
||||
|
||||
g_value_set_string (value, text);
|
||||
g_free (text);
|
||||
g_value_take_string (value, text);
|
||||
}
|
||||
break;
|
||||
case PROP_TOOLTIP_MARKUP:
|
||||
|
Loading…
Reference in New Issue
Block a user