GTK: fix an use-after-free in message dialog ShowModal().

pull/351/head
whitequark 2018-08-03 13:34:12 +00:00
parent fc873c550c
commit 4d1e1341d9
1 changed files with 1 additions and 1 deletions

View File

@ -1166,8 +1166,8 @@ public:
shownMessageDialogs.push_back(shared_from_this()); shownMessageDialogs.push_back(shared_from_this());
gtkDialog.signal_response().connect([this](int gtkResponse) { gtkDialog.signal_response().connect([this](int gtkResponse) {
gtkDialog.hide();
ProcessResponse(gtkResponse); ProcessResponse(gtkResponse);
gtkDialog.hide();
}); });
gtkDialog.show(); gtkDialog.show();
} }