Commit bd90bfbc authored by Matthias Clasen's avatar Matthias Clasen Committed by Matthias Clasen
Browse files

Don't leak preedit_string and preedit_attrs. (#322332, Paolo Borelli)

2006-01-09  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtktextlayout.c (gtk_text_layout_finalize): Don't
	leak preedit_string and preedit_attrs.  (#322332, Paolo
	Borelli)
parent 8e3d4a94
2006-01-09 Matthias Clasen <mclasen@redhat.com>
* gtk/gtktextlayout.c (gtk_text_layout_finalize): Don't
leak preedit_string and preedit_attrs. (#322332, Paolo
Borelli)
* gtk/gtk.symbols:
* gtk/gtkaction.h:
* gtk/gtkaction.c (gtk_widget_get_action): New function to
......
2006-01-09 Matthias Clasen <mclasen@redhat.com>
* gtk/gtktextlayout.c (gtk_text_layout_finalize): Don't
leak preedit_string and preedit_attrs. (#322332, Paolo
Borelli)
* gtk/gtk.symbols:
* gtk/gtkaction.h:
* gtk/gtkaction.c (gtk_widget_get_action): New function to
......
......@@ -297,6 +297,19 @@ gtk_text_layout_finalize (GObject *object)
gtk_text_layout_free_line_display (layout, tmp_display);
}
if (layout->preedit_string)
{
g_free (layout->preedit_string);
layout->preedit_string = NULL;
}
if (layout->preedit_attrs)
{
pango_attr_list_unref (layout->preedit_attrs);
layout->preedit_attrs = NULL;
}
(* G_OBJECT_CLASS (parent_class)->finalize) (object);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment