gtk+ r19783 - in branches/gtk-2-12: . gtk



Author: matthiasc
Date: Wed Mar 12 16:40:51 2008
New Revision: 19783
URL: http://svn.gnome.org/viewvc/gtk+?rev=19783&view=rev

Log:
2008-03-12  Matthias Clasen  <mclasen redhat com>

        * gtk/gtkpagesetup.c (gtk_page_setup_copy): Don't leak
        paper_size here.  (#488820, Morten Welinder)



Modified:
   branches/gtk-2-12/ChangeLog
   branches/gtk-2-12/gtk/gtkpagesetup.c

Modified: branches/gtk-2-12/gtk/gtkpagesetup.c
==============================================================================
--- branches/gtk-2-12/gtk/gtkpagesetup.c	(original)
+++ branches/gtk-2-12/gtk/gtkpagesetup.c	Wed Mar 12 16:40:51 2008
@@ -113,6 +113,7 @@
 
   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;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]