[maemo-commits] [maemo-commits] r16108 - projects/haf/branches/hildon-thumbnail/daemonize/daemon

From: subversion at stage.maemo.org subversion at stage.maemo.org
Date: Mon Sep 15 17:16:15 EEST 2008
Author: pvanhoof
Date: 2008-09-15 17:16:14 +0300 (Mon, 15 Sep 2008)
New Revision: 16108

Modified:
   projects/haf/branches/hildon-thumbnail/daemonize/daemon/manager.c
Log:
Memleak fix

Modified: projects/haf/branches/hildon-thumbnail/daemonize/daemon/manager.c
===================================================================
--- projects/haf/branches/hildon-thumbnail/daemonize/daemon/manager.c	2008-09-15 14:14:53 UTC (rev 16107)
+++ projects/haf/branches/hildon-thumbnail/daemonize/daemon/manager.c	2008-09-15 14:16:14 UTC (rev 16108)
@@ -398,8 +398,10 @@
 {
 	ManagerPrivate *priv = MANAGER_GET_PRIVATE (object);
 
-	if (priv->thumber_has)
+	if (priv->thumber_has) {
+		g_list_foreach (priv->thumber_has, (GFunc) g_free, NULL);
 		g_list_free (priv->thumber_has);
+	}
 	g_hash_table_unref (priv->handlers);
 	g_mutex_free (priv->mutex);
 


More information about the maemo-commits mailing list