fixed memory leak when saving XPMs

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13377 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík
2002-01-04 22:51:55 +00:00
parent b34039cf55
commit 24c41ec5a0

View File

@@ -141,6 +141,7 @@ bool wxXPMHandler::SaveFile(wxImage * image,
// 3. create color symbols table:
wxHashTable table(wxKEY_INTEGER);
table.DeleteContents(TRUE);
image->ComputeHistogram(table);
char *symbols_data = new char[cols * (chars_per_pixel+1)];