summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2008-03-12 16:37:51 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2008-03-12 16:37:51 +0000
commitd0d95f8bc96f326c04292d1173a9c669064df828 (patch)
treea44d5d6d67b80a1446cb0db7b072bcb69f536cd1
parent168a59079d0b760919fecf61a88e6b0b4fcb3bad (diff)
downloadgdk-pixbuf-d0d95f8bc96f326c04292d1173a9c669064df828.tar.gz
Don't leak paper_size here. (#488820, Morten Welinder)
2008-03-12 Matthias Clasen <mclasen@redhat.com> * gtk/gtkpagesetup.c (gtk_page_setup_copy): Don't leak paper_size here. (#488820, Morten Welinder) svn path=/trunk/; revision=19781
-rw-r--r--ChangeLog5
-rw-r--r--gtk/gtkpagesetup.c1
2 files changed, 6 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index b0c3d2c45..d0c6e314b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-03-12 Matthias Clasen <mclasen@redhat.com>
+
+ * gtk/gtkpagesetup.c (gtk_page_setup_copy): Don't leak
+ paper_size here. (#488820, Morten Welinder)
+
2008-03-12 Michael Natterer <mitch@imendio.com>
* acconfig.h: remove this deprecated file.
diff --git a/gtk/gtkpagesetup.c b/gtk/gtkpagesetup.c
index ab6a224dd..bc3fee337 100644
--- a/gtk/gtkpagesetup.c
+++ b/gtk/gtkpagesetup.c
@@ -113,6 +113,7 @@ gtk_page_setup_copy (GtkPageSetup *other)
copy = gtk_page_setup_new ();
copy->orientation = other->orientation;
+ gtk_paper_size_free (copy->paper_size);
copy->paper_size = gtk_paper_size_copy (other->paper_size);
copy->top_margin = other->top_margin;
copy->bottom_margin = other->bottom_margin;