From e04fe06a7b15aed70964962376484e95d1f05d28 Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Tue, 19 Sep 2023 23:19:08 +0100 Subject: [PATCH] Fix window closing in HideDropDownMenu --- src/widgets/dropdown.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/widgets/dropdown.cpp b/src/widgets/dropdown.cpp index cc4ea0f3a3..ae40ba004c 100644 --- a/src/widgets/dropdown.cpp +++ b/src/widgets/dropdown.cpp @@ -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; } }