Fix memory leak when closing Blender with operator popup open
Steps to reproduce: * Default startup.blend * RMB-Click on "Cube" item in outliner * Select Remap Users * Close Blender using window 'x' button
This commit is contained in:
parent
e4646c52c0
commit
4559229163
Notes:
blender-bot
2023-02-14 07:39:41 +01:00
Referenced by commit e240025276
, Fix T49199: Combination of dialog + wm.open_mainfile causes crash
Referenced by issue #49828, calling bpy.ops.wm.open_mainfile from class which is invoked from pop-up button results in crash.
Referenced by issue #49199, Combination of dialog + wm.open_mainfile causes crash
|
@ -10156,6 +10156,10 @@ static void ui_popup_handler_remove(bContext *C, void *userdata)
|
|||
{
|
||||
uiPopupBlockHandle *menu = userdata;
|
||||
|
||||
if (menu->cancel_func) {
|
||||
menu->cancel_func(C, menu->popup_arg);
|
||||
}
|
||||
|
||||
/* free menu block if window is closed for some reason */
|
||||
ui_popup_block_free(C, menu);
|
||||
|
||||
|
|
Loading…
Reference in New Issue