From 6d4cd24b722c8fc9ca63e24447b40892b84054de Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Thu, 16 Sep 2010 13:38:05 +0200 Subject: empathy_call_window_fullscreen_set_cursor_visible: early return if video widget is NULL --- src/empathy-call-window-fullscreen.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/empathy-call-window-fullscreen.c b/src/empathy-call-window-fullscreen.c index 75542e021..7827cdb76 100644 --- a/src/empathy-call-window-fullscreen.c +++ b/src/empathy-call-window-fullscreen.c @@ -69,7 +69,10 @@ empathy_call_window_fullscreen_set_cursor_visible ( { EmpathyCallWindowFullscreenPriv *priv = GET_PRIV (fs); - if (priv->video_widget != NULL && !show_cursor) + if (priv->video_widget == NULL) + return; + + if (!show_cursor) { gdk_window_set_cursor (gtk_widget_get_window (priv->video_widget), gdk_cursor_new (GDK_BLANK_CURSOR)); -- cgit v1.2.3