]> git.0d.be Git - empathy.git/commitdiff
If window->call is NULL consider the call as CLOSED
authorXavier Claessens <xclaesse@src.gnome.org>
Mon, 21 Apr 2008 14:06:37 +0000 (14:06 +0000)
committerXavier Claessens <xclaesse@src.gnome.org>
Mon, 21 Apr 2008 14:06:37 +0000 (14:06 +0000)
svn path=/trunk/; revision=1021

src/empathy-call-window.c

index 3d8d594e4364e25c351612efdd603ed5f97279d5..5c42bbe7dfb1cb4a48957e846aeb8316e4ec9a3c 100644 (file)
@@ -253,11 +253,13 @@ call_window_delete_event_cb (GtkWidget *widget,
 {
   GtkWidget *dialog;
   gint result;
-  guint status;
+  guint status = EMPATHY_TP_CALL_STATUS_CLOSED;
 
   empathy_debug (DEBUG_DOMAIN, "Delete event occurred");
 
-  g_object_get (G_OBJECT (window->call), "status", &status, NULL);
+  if (window->call)
+      g_object_get (window->call, "status", &status, NULL);
+
   if (status == EMPATHY_TP_CALL_STATUS_ACCEPTED)
     {
       dialog = gtk_message_dialog_new (GTK_WINDOW (window->window),