Fixes RefNULL 4/14
authorSergio Villar Senin <svillar@igalia.com>
Fri, 20 Mar 2009 09:35:42 +0000 (09:35 +0000)
committerSergio Villar Senin <svillar@igalia.com>
Fri, 20 Mar 2009 09:35:42 +0000 (09:35 +0000)
pmo-trunk-r8231

src/modest-ui-actions.c

index 8646f01..736eeb0 100644 (file)
@@ -974,13 +974,12 @@ open_msg_banner_idle (gpointer userdata)
        gdk_threads_enter ();
        banner_info->idle_handler = 0;
        banner_info->banner = modest_platform_animation_banner (NULL, NULL, banner_info->message);
-       if (banner_info)
+       if (banner_info->banner)
                g_object_ref (banner_info->banner);
-       
+
        gdk_threads_leave ();
 
        return FALSE;
-       
 }
 
 static GtkWidget *