mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-12 21:40:19 +00:00
Forgot to free the unescaped tooltip text.
2007-06-15 Mathias Hasselmann <mathias.hasselmann@gmx.de> * gtk/gtkwidget.c: Forgot to free the unescaped tooltip text. svn path=/trunk/; revision=18144
This commit is contained in:
parent
ced0bab02f
commit
a34dfc3c5c
@ -1,3 +1,7 @@
|
||||
2007-06-15 Mathias Hasselmann <mathias.hasselmann@gmx.de>
|
||||
|
||||
* gtk/gtkwidget.c: Forgot to free the unescaped tooltip text.
|
||||
|
||||
2007-06-15 Mathias Hasselmann <mathias.hasselmann@gmx.de>
|
||||
|
||||
* gtk/gtkwidget.c: Improving handling of tooltip-text property.
|
||||
|
@ -2144,12 +2144,13 @@ gtk_widget_get_property (GObject *object,
|
||||
case PROP_TOOLTIP_TEXT:
|
||||
{
|
||||
gchar *escaped = g_object_get_qdata (object, quark_tooltip_markup);
|
||||
gchar *text = NULL;
|
||||
gchar *text = NULL;
|
||||
|
||||
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_value_set_string (value, text);
|
||||
g_free (text);
|
||||
}
|
||||
break;
|
||||
case PROP_TOOLTIP_MARKUP:
|
||||
|
Loading…
Reference in New Issue
Block a user