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

From: subversion at stage.maemo.org subversion at stage.maemo.org
Date: Thu Sep 18 12:37:44 EEST 2008
Author: pvanhoof
Date: 2008-09-18 12:37:43 +0300 (Thu, 18 Sep 2008)
New Revision: 16179

Modified:
   projects/haf/branches/hildon-thumbnail/daemonize/daemon/hildon-thumbnail-daemon.c
Log:
Memory leak

Modified: projects/haf/branches/hildon-thumbnail/daemonize/daemon/hildon-thumbnail-daemon.c
===================================================================
--- projects/haf/branches/hildon-thumbnail/daemonize/daemon/hildon-thumbnail-daemon.c	2008-09-18 09:29:12 UTC (rev 16178)
+++ projects/haf/branches/hildon-thumbnail/daemonize/daemon/hildon-thumbnail-daemon.c	2008-09-18 09:37:43 UTC (rev 16179)
@@ -203,9 +203,6 @@
 		g_signal_connect (G_OBJECT (monitor), "changed", 
 				  G_CALLBACK (on_plugin_changed), thumbnailer);
 
-		// g_object_unref (file)
-		// g_object_unref (monitor);
-
 		main_loop = g_main_loop_new (NULL, FALSE);
 
 		g_timeout_add_seconds (600, 
@@ -214,6 +211,9 @@
 
 		g_main_loop_run (main_loop);
 
+		g_object_unref (monitor);
+		g_object_unref (file);
+
 		stop_plugins (registrations, thumbnailer);
 
 		g_hash_table_unref (registrations);


More information about the maemo-commits mailing list