]> git.0d.be Git - empathy.git/commitdiff
Added a workaround to EmpathyTpFile's finalize function so it doesn't run g_object_un...
authorJonny Lamb <jonny.lamb@collabora.co.uk>
Fri, 21 Nov 2008 16:13:51 +0000 (16:13 +0000)
committerXavier Claessens <xclaesse@src.gnome.org>
Fri, 21 Nov 2008 16:13:51 +0000 (16:13 +0000)
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
svn path=/trunk/; revision=1739

libempathy/empathy-tp-file.c

index 0b99c03f46a27b6c6cbee9ffe6cac275b5fdf154..26b33ae87cb393cbfde39925e7f16bb626756830 100644 (file)
@@ -254,7 +254,8 @@ tp_file_finalize (GObject *object)
       g_signal_handlers_disconnect_by_func (priv->channel,
           tp_file_destroy_cb, object);
       tp_cli_channel_run_close (priv->channel, -1, NULL, NULL);
-      g_object_unref (priv->channel);
+      if (G_IS_OBJECT (priv->channel))
+        g_object_unref (priv->channel);
     }
 
   if (priv->factory)