]> git.0d.be Git - empathy.git/commitdiff
Only distroy the video output if it exists
authorSjoerd Simons <sjoerd.simons@collabora.co.uk>
Mon, 14 Mar 2011 12:14:32 +0000 (12:14 +0000)
committerEmilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>
Thu, 9 Jun 2011 09:20:07 +0000 (10:20 +0100)
src/empathy-call-window.c

index 9ed66d4b44b2dd6b07d83537b2487bea3f0e3c6a..aa8bd5dcd15306262b9589d1b76b945b71c84d9e 100644 (file)
@@ -1877,7 +1877,8 @@ empathy_call_window_disconnected (EmpathyCallWindow *self,
 
       /* destroy the video output; it will be recreated when we'll redial */
       disconnect_video_output_motion_handler (self);
-      gtk_widget_destroy (priv->video_output);
+      if (priv->video_output != NULL)
+        gtk_widget_destroy (priv->video_output);
       priv->video_output = NULL;
 
       gtk_widget_show (priv->remote_user_avatar_widget);