summaryrefslogtreecommitdiff
path: root/gtk/gtkprintunixdialog.c
diff options
context:
space:
mode:
authorPaolo Borelli <pborelli@katamail.com>2008-01-28 16:06:16 +0000
committerPaolo Borelli <pborelli@src.gnome.org>2008-01-28 16:06:16 +0000
commit5c1a343c7588fdfb59aca3acccbbd430788c0126 (patch)
tree8b250982a4a54350a5b9f4ff900194a051d08d47 /gtk/gtkprintunixdialog.c
parent2bf99bb12e1d4bc9e35c2ef52f55af7b89751c3f (diff)
downloadgtk+-5c1a343c7588fdfb59aca3acccbbd430788c0126.tar.gz
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
Diffstat (limited to 'gtk/gtkprintunixdialog.c')
-rw-r--r--gtk/gtkprintunixdialog.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gtk/gtkprintunixdialog.c b/gtk/gtkprintunixdialog.c
index 695bfb8be0..9ee4c5cd18 100644
--- a/gtk/gtkprintunixdialog.c
+++ b/gtk/gtkprintunixdialog.c
@@ -2000,7 +2000,8 @@ draw_page_cb (GtkWidget *widget,
cairo_restore (cr);
}
}
-
+
+ g_object_unref (layout);
cairo_destroy (cr);
return TRUE;