[maemo-commits] [maemo-commits] r16527 - projects/haf/trunk/hildon-thumbnail/daemon

From: subversion at stage.maemo.org subversion at stage.maemo.org
Date: Wed Oct 29 13:41:25 EET 2008
Author: pvanhoof
Date: 2008-10-29 13:41:23 +0200 (Wed, 29 Oct 2008)
New Revision: 16527

Modified:
   projects/haf/trunk/hildon-thumbnail/daemon/thumbnail-manager.c
Log:
Bugfix

Modified: projects/haf/trunk/hildon-thumbnail/daemon/thumbnail-manager.c
===================================================================
--- projects/haf/trunk/hildon-thumbnail/daemon/thumbnail-manager.c	2008-10-29 11:39:38 UTC (rev 16526)
+++ projects/haf/trunk/hildon-thumbnail/daemon/thumbnail-manager.c	2008-10-29 11:41:23 UTC (rev 16527)
@@ -448,18 +448,18 @@
 
 	g_mutex_lock (priv->mutex);
 
-	mime_proxy = g_hash_table_lookup (priv->handlers, 
-					  mime_type);
-
 	sender = dbus_g_method_get_sender (context);
 
 	thumbnail_manager_add (object, query, sender);
 
-	g_free (query);
 	g_free (sender);
 
 	/* This is not necessary for activatable ones */
 
+	mime_proxy = g_hash_table_lookup (priv->handlers, query);
+
+	g_free (query);
+
 	g_signal_connect (mime_proxy, "destroy",
 			  G_CALLBACK (service_gone),
 			  object);


More information about the maemo-commits mailing list