Fix #27522: crash when closing new render window with render error message
authorBrecht Van Lommel <brechtvanlommel@pandora.be>
Mon, 30 May 2011 11:44:28 +0000 (11:44 +0000)
committerBrecht Van Lommel <brechtvanlommel@pandora.be>
Mon, 30 May 2011 11:44:28 +0000 (11:44 +0000)
showing in the main window.

source/blender/windowmanager/intern/wm_window.c

index 5cf2f8932f573a6f0faee30ea8d888e71ae64daa..82fe42f2b427fd2da00c280e58b9bd56a9b14d41 100644 (file)
@@ -1009,6 +1009,8 @@ void WM_event_remove_timer(wmWindowManager *wm, wmWindow *UNUSED(win), wmTimer *
                if(wt==timer)
                        break;
        if(wt) {
+               if(wm->reports.reporttimer == wt)
+                       wm->reports.reporttimer= NULL;
                
                BLI_remlink(&wm->timers, wt);
                if(wt->customdata)