[Telepathy-commits] [telepathy-gabble/master] also free on error

Pierre-Luc Beaudoin pierre-luc.beaudoin at collabora.co.uk
Sun Feb 1 05:24:01 PST 2009


---
 src/conn-location.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/conn-location.c b/src/conn-location.c
index 73782d8..9470f1e 100644
--- a/src/conn-location.c
+++ b/src/conn-location.c
@@ -209,10 +209,10 @@ location_set_location (GabbleSvcConnectionInterfaceLocation *iface,
           "Failed to send msg" };
 
       dbus_g_method_return_error (context, &error);
-      return;
     }
+  else
+    dbus_g_method_return (context);
 
-  dbus_g_method_return (context);
   lm_message_unref (msg);
 }
 
-- 
1.5.6.5




More information about the Telepathy-commits mailing list