diff options
author | Campbell Barton <ideasman42@gmail.com> | 2021-10-16 07:35:36 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2021-10-16 07:35:36 +0300 |
commit | 1c18f05f0be0e31c135462d3dea763e97dd26698 (patch) | |
tree | bc7e4d0868d059ed7ea91ced39fdc195df4d50bd /source/blender/windowmanager/intern | |
parent | 458668832370d3aa98b0f75c4587534e75d60fe4 (diff) |
Fix T92252: User after free when opening file after Blender starts
Oversight in 6e4ab5b761b03b52177985ecbeb2c2f576159c74
Diffstat (limited to 'source/blender/windowmanager/intern')
-rw-r--r-- | source/blender/windowmanager/intern/wm_event_system.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/windowmanager/intern/wm_event_system.c b/source/blender/windowmanager/intern/wm_event_system.c index df4d2c13ba7..d05076bafe2 100644 --- a/source/blender/windowmanager/intern/wm_event_system.c +++ b/source/blender/windowmanager/intern/wm_event_system.c @@ -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; } |