Fix window closing in HideDropDownMenu

This commit is contained in:
Jonathan G Rennison 2023-09-19 23:19:08 +01:00
parent 22a3a6d3c4
commit e04fe06a7b

View File

@ -515,7 +515,7 @@ int HideDropDownMenu(Window *pw)
if (pw->window_class == dw->parent_wnd_class &&
pw->window_number == dw->parent_wnd_num) {
int parent_button = dw->parent_button;
delete dw;
dw->Close();
return parent_button;
}
}