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:
committed by
Vadim Zeitlin
parent
61e84dc2fa
commit
a8257855c3
@@ -28,7 +28,7 @@ wxApp::~wxApp()
|
|||||||
// Delete command line arguments
|
// Delete command line arguments
|
||||||
for ( int i = 0; i < m_qtArgc; ++i )
|
for ( int i = 0; i < m_qtArgc; ++i )
|
||||||
{
|
{
|
||||||
delete m_qtArgv[i];
|
free(m_qtArgv[i]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user