]> Pileus Git - ~andy/gtk/commitdiff
Don't leak the cairo context here. (#340522, Christian Persch)
authorMatthias Clasen <mclasen@redhat.com>
Wed, 3 May 2006 17:52:41 +0000 (17:52 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Wed, 3 May 2006 17:52:41 +0000 (17:52 +0000)
2006-05-03  Matthias Clasen  <mclasen@redhat.com>

* gtk/gtkprintunixdialog.c (draw_page_cb): Don't leak the
cairo context here.  (#340522, Christian Persch)

ChangeLog
ChangeLog.pre-2-10
gtk/gtkprintunixdialog.c

index 4d7952a00c56a21177452dd66b8753875e635bf2..83b3802ca4cd65de20be568cff4a707bc53d351e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2006-05-03  Matthias Clasen  <mclasen@redhat.com>
 
+       * gtk/gtkprintunixdialog.c (draw_page_cb): Don't leak the
+       cairo context here.  (#340522, Christian Persch)
+
        * gtk/gtkprintoperation-unix.c (unix_finish_send): Don't
        use gtk_dialog_run for the error dialog, and improve the
        dialog in other ways.  (#340510, Christian Persch)
index 4d7952a00c56a21177452dd66b8753875e635bf2..83b3802ca4cd65de20be568cff4a707bc53d351e 100644 (file)
@@ -1,5 +1,8 @@
 2006-05-03  Matthias Clasen  <mclasen@redhat.com>
 
+       * gtk/gtkprintunixdialog.c (draw_page_cb): Don't leak the
+       cairo context here.  (#340522, Christian Persch)
+
        * gtk/gtkprintoperation-unix.c (unix_finish_send): Don't
        use gtk_dialog_run for the error dialog, and improve the
        dialog in other ways.  (#340510, Christian Persch)
index b390035fd35701b48a468ea22706a1ed8a330327..9ac102f996e7915dad7fabda55f9d86e90a7db09 100644 (file)
@@ -1920,6 +1920,8 @@ draw_page_cb (GtkWidget            *widget,
        }
     }
     
+  cairo_destroy (cr);
+
   return TRUE;
 }