GTK: fix an use-after-free in message dialog ShowModal().
parent
fc873c550c
commit
4d1e1341d9
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue