Skip to content

Commit

Permalink
GTK: fix an use-after-free in message dialog ShowModal().
Browse files Browse the repository at this point in the history
  • Loading branch information
whitequark committed Aug 3, 2018
1 parent fc873c5 commit 4d1e134
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/platform/guigtk.cpp
Expand Up @@ -1166,8 +1166,8 @@ class MessageDialogImplGtk final : public MessageDialog,
shownMessageDialogs.push_back(shared_from_this());

gtkDialog.signal_response().connect([this](int gtkResponse) {
gtkDialog.hide();
ProcessResponse(gtkResponse);
gtkDialog.hide();
});
gtkDialog.show();
}
Expand Down

0 comments on commit 4d1e134

Please sign in to comment.