From 3af933325113a4075856e8d4287c54019c7cb495 Mon Sep 17 00:00:00 2001 From: Joshua Leung Date: Sun, 25 Oct 2009 05:33:35 +0000 Subject: Fix for crash when doing File -> Open, File -> New (without closing the FileBrowser first) --- source/blender/windowmanager/intern/wm_cursors.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/windowmanager/intern/wm_cursors.c') diff --git a/source/blender/windowmanager/intern/wm_cursors.c b/source/blender/windowmanager/intern/wm_cursors.c index e2aedf42bd8..df483f9013e 100644 --- a/source/blender/windowmanager/intern/wm_cursors.c +++ b/source/blender/windowmanager/intern/wm_cursors.c @@ -181,7 +181,7 @@ void WM_cursor_grab(wmWindow *win, int wrap, int hide, int *bounds) void WM_cursor_ungrab(wmWindow *win) { if ((G.f & G_DEBUG) == 0) - if(win) + if(win && win->ghostwin) GHOST_SetCursorGrab(win->ghostwin, GHOST_kGrabDisable, NULL); } -- cgit v1.2.3