]> git.0d.be Git - empathy.git/commitdiff
Close ongoing calls at dispose time
authorSjoerd Simons <sjoerd.simons@collabora.co.uk>
Tue, 3 Feb 2009 09:03:35 +0000 (09:03 +0000)
committerXavier Claessens <xclaesse@src.gnome.org>
Tue, 3 Feb 2009 09:03:35 +0000 (09:03 +0000)
Signed-off-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk>
svn path=/trunk/; revision=2396

libempathy/empathy-call-handler.c

index dedf321c02431ac07bbf88531b720fe2f31a6b9d..1b4de168d392d32a4e2b87eaffc28b2b12012703 100644 (file)
@@ -191,11 +191,13 @@ empathy_call_handler_dispose (GObject *object)
 
   /* FIXME close the call ? */
   if (priv->call != NULL)
-    g_object_unref (priv->call);
+    {
+      empathy_tp_call_close (priv->call);
+      g_object_unref (priv->call);
+    }
 
   priv->call = NULL;
 
-
   /* release any references held by the object here */
   if (G_OBJECT_CLASS (empathy_call_handler_parent_class)->dispose)
     G_OBJECT_CLASS (empathy_call_handler_parent_class)->dispose (object);