Now does cleanup when returning false from OnInit
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26240 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -419,6 +419,7 @@ bool MyApp::OnInit()
|
|||||||
#ifdef NO_GUI
|
#ifdef NO_GUI
|
||||||
return true;
|
return true;
|
||||||
#else
|
#else
|
||||||
|
OnExit(); // Do cleanup since OnExit won't be called now
|
||||||
return false;
|
return false;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user