]> git.0d.be Git - empathy.git/blobdiff - libempathy/empathy-call-handler.c
Also unref the tf channel
[empathy.git] / libempathy / empathy-call-handler.c
index 44989182521a027e1b00fdd183c63e52838fb442..a6117cd1930976f552943abe81767132bfda7fc4 100644 (file)
@@ -189,7 +189,13 @@ empathy_call_handler_dispose (GObject *object)
   if (priv->contact != NULL)
     g_object_unref (priv->contact);
 
-  /* FIXME close the call ? */
+  priv->contact = NULL;
+
+  if (priv->tfchannel != NULL)
+    g_object_unref (priv->tfchannel);
+
+  priv->tfchannel = NULL;
+
   if (priv->call != NULL)
     {
       empathy_tp_call_close (priv->call);