aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libempathy/empathy-call-handler.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/libempathy/empathy-call-handler.c b/libempathy/empathy-call-handler.c
index dedf321c0..1b4de168d 100644
--- a/libempathy/empathy-call-handler.c
+++ b/libempathy/empathy-call-handler.c
@@ -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);