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:
Mathias Hasselmann 2007-06-15 18:34:21 +00:00 committed by Mathias Hasselmann
parent ced0bab02f
commit a34dfc3c5c
2 changed files with 7 additions and 2 deletions

View File

@ -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.

View File

@ -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: