]> git.saurik.com Git - wxWidgets.git/commitdiff
free argv in Unicode build
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 17 Dec 2002 19:52:06 +0000 (19:52 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 17 Dec 2002 19:52:06 +0000 (19:52 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18303 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/init.cpp

index 244490529f04fa88efe5271aef7f2501d1d1ebf5..4f0aed6e49c55831e14f83e71621116449589d3e 100644 (file)
@@ -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;