[gedit] window: do not leak the icon



commit b85ca0106208454572e002d31e10f241a51ca991
Author: Ignacio Casal Quinteiro <icq gnome org>
Date:   Fri Jul 29 11:36:29 2011 +0200

    window: do not leak the icon

 gedit/gedit-window.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/gedit/gedit-window.c b/gedit/gedit-window.c
index 97c57a5..fcf25ea 100644
--- a/gedit/gedit-window.c
+++ b/gedit/gedit-window.c
@@ -1473,6 +1473,10 @@ update_recent_files_menu (GeditWindow *window)
 		g_free (action_name);
 		g_free (label);
 		g_free (tip);
+		if (icon != NULL)
+		{
+			g_object_unref (icon);
+		}
 	}
 
 	g_list_free (filtered_items);



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