One more.

This commit is contained in:
2025-03-11 17:33:13 -04:00
parent 5f1fa36890
commit 9be23f8360

View File

@ -368,7 +368,7 @@ int a_Dialog_choice(const char *title, const char *msg, ...)
int ww = 140 + n * 60, wh = 120;
int bw = (ww - gap) / n - gap, bh = 45;
Fl_Window *window = new Fl_Window(ww, wh, title);
auto window = std::make_unique< Fl_Window >(ww, wh, title);
window->set_modal();
window->begin();
@ -402,7 +402,7 @@ int a_Dialog_choice(const char *title, const char *msg, ...)
_MSG("Dialog_choice answer = %d\n", answer);
td->buffer(NULL);
delete buf;
delete window;
window.reset();
return choice_answer;
}