WM: NULL check for recent tooltip change
authorCampbell Barton <ideasman42@gmail.com>
Thu, 25 Jan 2018 10:39:04 +0000 (21:39 +1100)
committerCampbell Barton <ideasman42@gmail.com>
Thu, 25 Jan 2018 10:52:40 +0000 (21:52 +1100)
Caused crash dragging boolean buttons.

source/blender/editors/interface/interface_handlers.c

index 2f7359da308cb483b365bb1b510412eec16d305d..47de598c028b3e3f4f4866f46865e8794db3fea1 100644 (file)
@@ -7671,7 +7671,9 @@ void UI_but_tooltip_timer_remove(bContext *C, uiBut *but)
                        data->autoopentimer = NULL;
                }
 
-               WM_tooltip_clear(C, data->window);
+               if (data->window) {
+                       WM_tooltip_clear(C, data->window);
+               }
        }
 }