applied patch #928786: "Fix memory leak produced by ConvertArgsToUnicode()"

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26640 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Dimitri Schoolwerth 2004-04-06 17:18:20 +00:00
parent caf412d6f2
commit 08989e30ed

View File

@ -181,6 +181,7 @@ static void ConvertArgsToUnicode(int argc, char **argv)
gs_initData.argv[i] = wxStrdup(wxConvLocal.cMB2WX(argv[i]));
}
gs_initData.argc = argc;
gs_initData.argv[argc] = NULL;
}
@ -195,6 +196,7 @@ static void FreeConvertedArgs()
delete [] gs_initData.argv;
gs_initData.argv = NULL;
gs_initData.argc = 0;
}
}