X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d47f8a6ec0f95db08f0133257a1daa0bdbb789e7..236de6f62add164687ca8461c3e1aa147598909d:/src/common/init.cpp?ds=sidebyside diff --git a/src/common/init.cpp b/src/common/init.cpp index 244490529f..4f0aed6e49 100644 --- a/src/common/init.cpp +++ b/src/common/init.cpp @@ -219,6 +219,14 @@ static void DoCleanUp() wxClassInfo::CleanUpClasses(); + // TODO: this should really be done in ~wxApp +#if wxUSE_UNICODE + for ( int mb_argc = 0; mb_argc < wxTheApp->argc; mb_argc++ ) + { + free(wxTheApp->argv[mb_argc]); + } +#endif // wxUSE_UNICODE + // delete the application object delete wxTheApp; wxTheApp = (wxApp *)NULL;