gtk+ r19781 - in trunk: . gtk



Author: matthiasc
Date: Wed Mar 12 16:37:51 2008
New Revision: 19781
URL: http://svn.gnome.org/viewvc/gtk+?rev=19781&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:
   trunk/ChangeLog
   trunk/gtk/gtkpagesetup.c

Modified: trunk/gtk/gtkpagesetup.c
==============================================================================
--- trunk/gtk/gtkpagesetup.c	(original)
+++ trunk/gtk/gtkpagesetup.c	Wed Mar 12 16:37: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]