]> git.0d.be Git - empathy.git/commitdiff
Fix assertion when closing a call window after CM crashed.
authorMike Ruprecht <mike.ruprecht@collabora.co.uk>
Wed, 14 Oct 2009 22:47:16 +0000 (17:47 -0500)
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Mon, 19 Oct 2009 09:25:46 +0000 (10:25 +0100)
g_object_unref was called on a NULL pointer.

src/empathy-call-window.c

index 363d294413ad5858c279069004c085ac97e1992f..c274ee2a65005517f21c8f06238d37330fd19c3d 100644 (file)
@@ -1087,10 +1087,9 @@ empathy_call_window_dispose (GObject *object)
     {
       g_signal_handlers_disconnect_by_func (call,
         empathy_call_window_video_stream_changed_cb, object);
+      g_object_unref (call);
     }
 
-  g_object_unref (call);
-
   if (priv->handler != NULL)
     g_object_unref (priv->handler);
   priv->handler = NULL;