gedit r6376 - trunk/gedit
- From: pborelli svn gnome org
- To: svn-commits-list gnome org
- Subject: gedit r6376 - trunk/gedit
- Date: Sun, 10 Aug 2008 14:01:38 +0000 (UTC)
Author: pborelli
Date: Sun Aug 10 14:01:38 2008
New Revision: 6376
URL: http://svn.gnome.org/viewvc/gedit?rev=6376&view=rev
Log:
a couple more leaks
Modified:
   trunk/gedit/gedit-history-entry.c
   trunk/gedit/gedit-plugins-engine.c
   trunk/gedit/gedit-tab.c
Modified: trunk/gedit/gedit-history-entry.c
==============================================================================
--- trunk/gedit/gedit-history-entry.c	(original)
+++ trunk/gedit/gedit-history-entry.c	Sun Aug 10 14:01:38 2008
@@ -260,6 +260,7 @@
 			      gconf_items,
 			      NULL);
 
+	g_slist_foreach (gconf_items, (GFunc) g_free, NULL);
 	g_slist_free (gconf_items);
 	g_free (key);
 }
Modified: trunk/gedit/gedit-plugins-engine.c
==============================================================================
--- trunk/gedit/gedit-plugins-engine.c	(original)
+++ trunk/gedit/gedit-plugins-engine.c	Sun Aug 10 14:01:38 2008
@@ -374,6 +374,8 @@
 						   "module-name", info->module_name,
 						   NULL));
 
+	g_free (dirname);
+
 	if (!g_type_module_use (G_TYPE_MODULE (info->module)))
 	{
 		g_warning ("Cannot load plugin '%s' since file '%s' cannot be read.",
Modified: trunk/gedit/gedit-tab.c
==============================================================================
--- trunk/gedit/gedit-tab.c	(original)
+++ trunk/gedit/gedit-tab.c	Sun Aug 10 14:01:38 2008
@@ -1911,6 +1911,7 @@
 
 			location = gedit_document_get_location (doc);
 			pixbuf = get_icon (theme, location, icon_size);
+			g_object_unref (location);
 		}
 	}
 
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]