aboutsummaryrefslogtreecommitdiffstats
path: root/src/empathy-call-window.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/empathy-call-window.c')
-rw-r--r--src/empathy-call-window.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/empathy-call-window.c b/src/empathy-call-window.c
index 3d8d594e4..5c42bbe7d 100644
--- a/src/empathy-call-window.c
+++ b/src/empathy-call-window.c
@@ -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),