Fix mismatched malloc/delete in wxQt wxApp

m_qtArgv elements are allocated using wxStrdupA(), so must be free()d
and not deleted.

Closes https://github.com/wxWidgets/wxWidgets/pull/1363
This commit is contained in:
Graham Dawes
2019-06-19 16:06:10 +01:00
committed by Vadim Zeitlin
parent 61e84dc2fa
commit a8257855c3

View File

@@ -28,7 +28,7 @@ wxApp::~wxApp()
// Delete command line arguments
for ( int i = 0; i < m_qtArgc; ++i )
{
delete m_qtArgv[i];
free(m_qtArgv[i]);
}
}