empathy r1739 - trunk/libempathy



Author: xclaesse
Date: Fri Nov 21 16:13:51 2008
New Revision: 1739
URL: http://svn.gnome.org/viewvc/empathy?rev=1739&view=rev

Log:
Added a workaround to EmpathyTpFile's finalize function so it doesn't run g_object_unref on non-GObjects. (Jonny Lamb)
Signed-off-by: Jonny Lamb <jonny lamb collabora co uk>

Modified:
   trunk/libempathy/empathy-tp-file.c

Modified: trunk/libempathy/empathy-tp-file.c
==============================================================================
--- trunk/libempathy/empathy-tp-file.c	(original)
+++ trunk/libempathy/empathy-tp-file.c	Fri Nov 21 16:13:51 2008
@@ -254,7 +254,8 @@
       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)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]