]> Pileus Git - ~andy/gtk/commitdiff
do not leak the pango layout, fixes #512375.
authorPaolo Borelli <pborelli@katamail.com>
Mon, 28 Jan 2008 16:06:16 +0000 (16:06 +0000)
committerPaolo Borelli <pborelli@src.gnome.org>
Mon, 28 Jan 2008 16:06:16 +0000 (16:06 +0000)
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

ChangeLog
gtk/gtkprintunixdialog.c

index d1eb34ab61f36ab393af51d3894f9f8bc07ef6ae..9749f70d80ce252ef540bc2371def7f6f49531ab 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
index 695bfb8be0d3eb7fa3f3601588c0249c3dfb148e..9ee4c5cd187fe9463d6ee4bc00aba9a2bdc8c964 100644 (file)
@@ -2000,7 +2000,8 @@ draw_page_cb (GtkWidget            *widget,
          cairo_restore (cr);
        }
     }
-    
+
+  g_object_unref (layout);
   cairo_destroy (cr);
 
   return TRUE;