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

From: subversion at stage.maemo.org subversion at stage.maemo.org
Date: Thu Sep 4 20:26:06 EEST 2008
Author: pvanhoof
Date: 2008-09-04 20:26:05 +0300 (Thu, 04 Sep 2008)
New Revision: 16023

Modified:
   projects/haf/branches/hildon-thumbnail/daemonize/daemon/plugin-runner.c
Log:
Bugfixes

Modified: projects/haf/branches/hildon-thumbnail/daemonize/daemon/plugin-runner.c
===================================================================
--- projects/haf/branches/hildon-thumbnail/daemonize/daemon/plugin-runner.c	2008-09-04 17:22:22 UTC (rev 16022)
+++ projects/haf/branches/hildon-thumbnail/daemonize/daemon/plugin-runner.c	2008-09-04 17:26:05 UTC (rev 16023)
@@ -51,9 +51,10 @@
 	DaemonPrivate *priv = DAEMON_GET_PRIVATE (object);
 	GError *error = NULL;
 	hildon_thumbnail_plugin_do_create (priv->module, uris, &error);
-	if (error)
+	if (error) {
 		dbus_g_method_return_error (context, error);
-	else
+		g_error_free (error);
+	} else
 		dbus_g_method_return (context);
 }
 
@@ -246,7 +247,7 @@
 
 	org_freedesktop_DBus_request_name (proxy, DAEMON_SERVICE,
 					   DBUS_NAME_FLAG_DO_NOT_QUEUE,
-					   &result, error);
+					   &result, &error);
 
 	object = g_object_new (TYPE_DAEMON, 
 			       "connection", connection, 


More information about the maemo-commits mailing list