[gedit] tab: fix memory leak of GtkPageSetup object



commit 1a7dc648a4cdd885e890c77c792267130b97b92c
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Sat Feb 21 20:26:14 2015 +0100

    tab: fix memory leak of GtkPageSetup object
    
    get_page_setup() returns a copy, so it needs to be unreffed.

 gedit/gedit-tab.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gedit/gedit-tab.c b/gedit/gedit-tab.c
index 21fa6f1..6112d41 100644
--- a/gedit/gedit-tab.c
+++ b/gedit/gedit-tab.c
@@ -2854,6 +2854,7 @@ _gedit_tab_print (GeditTab *tab)
                g_error_free (error);
        }
 
+       g_object_unref (setup);
        g_object_unref (settings);
 }
 


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