Fix T92252: User after free when opening file after Blender starts
Oversight in 6e4ab5b761
This commit is contained in:
parent
4586688323
commit
1c18f05f0b
Notes:
blender-bot
2023-02-14 01:52:41 +01:00
Referenced by issue #92252, User after free when opening file after Blender starts
|
@ -3161,10 +3161,10 @@ static int wm_handlers_do_intern(bContext *C, wmWindow *win, wmEvent *event, Lis
|
|||
/* This calls handlers twice - to solve (double-)click events. */
|
||||
static int wm_handlers_do(bContext *C, wmEvent *event, ListBase *handlers)
|
||||
{
|
||||
int action = wm_handlers_do_intern(C, CTX_wm_window(C), event, handlers);
|
||||
|
||||
/* Will be NULL in the file read case. */
|
||||
wmWindow *win = CTX_wm_window(C);
|
||||
int action = wm_handlers_do_intern(C, win, event, handlers);
|
||||
|
||||
if (win == NULL) {
|
||||
return action;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue