main sync #3

Merged
Patrick Busch merged 318 commits from blender/blender:main into main 2023-03-17 15:52:21 +01:00
Showing only changes of commit 9d3edb7e9a - Show all commits

View File

@ -239,6 +239,11 @@ static void wm_event_free_last_handled(wmWindow *win, wmEvent *event)
if (win->event_last_handled) {
wm_event_free(win->event_last_handled);
}
/* While not essential, these values are undefined, as the event is no longer in a list
* clear the linked-list pointers to avoid any confusion. */
event->next = event->prev = nullptr;
/* Don't store custom data in the last handled event as we don't have control how long this event
* will be stored and the referenced data may become invalid (also it's not needed currently). */
wm_event_custom_free(event);