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)
This commit is contained in:
committed by
Matthias Clasen
parent
8e3d4a9418
commit
bd90bfbc96
@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user