X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/02761f6cd478e3c2c97cf6f93442747f7b029833..83dea146e2523e2d73b810d01b460db2c9aca8da:/src/motif/evtloop.cpp?ds=sidebyside diff --git a/src/motif/evtloop.cpp b/src/motif/evtloop.cpp index 79a49240f1..84999bb11e 100644 --- a/src/motif/evtloop.cpp +++ b/src/motif/evtloop.cpp @@ -122,6 +122,8 @@ int wxEventLoop::Run() break; } + OnExit(); + int exitcode = m_impl->GetExitCode(); delete m_impl; m_impl = NULL;