From d0d95f8bc96f326c04292d1173a9c669064df828 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Wed, 12 Mar 2008 16:37:51 +0000 Subject: [PATCH] Don't leak paper_size here. (#488820, Morten Welinder) 2008-03-12 Matthias Clasen * gtk/gtkpagesetup.c (gtk_page_setup_copy): Don't leak paper_size here. (#488820, Morten Welinder) svn path=/trunk/; revision=19781 --- ChangeLog | 5 +++++ gtk/gtkpagesetup.c | 1 + 2 files changed, 6 insertions(+) diff --git a/ChangeLog b/ChangeLog index b0c3d2c45b..d0c6e314b4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-03-12 Matthias Clasen + + * gtk/gtkpagesetup.c (gtk_page_setup_copy): Don't leak + paper_size here. (#488820, Morten Welinder) + 2008-03-12 Michael Natterer * acconfig.h: remove this deprecated file. diff --git a/gtk/gtkpagesetup.c b/gtk/gtkpagesetup.c index ab6a224dd3..bc3fee3377 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;