do not leak the pango layout, fixes #512375.

2008-01-28  Paolo Borelli  <pborelli@katamail.com>

	* gtk/gtkprintunixdialog.c (draw_page_cb): do not leak the pango
	layout, fixes #512375.


svn path=/trunk/; revision=19419
This commit is contained in:
Paolo Borelli 2008-01-28 16:06:16 +00:00 committed by Paolo Borelli
parent 2bf99bb12e
commit 5c1a343c75
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2008-01-28 Paolo Borelli <pborelli@katamail.com>
* gtk/gtkprintunixdialog.c (draw_page_cb): do not leak the pango
layout, fixes #512375.
2008-01-28 Michael Natterer <mitch@imendio.com>
* gtk/gtktextchild.c

View File

@ -2000,7 +2000,8 @@ draw_page_cb (GtkWidget *widget,
cairo_restore (cr);
}
}
g_object_unref (layout);
cairo_destroy (cr);
return TRUE;