Patch #1638 2006-11-15 17:35

itayperl

new[] / delete mismatch
Download
1638-new_delete_mis.patch (487 bytes)
Category
Application::Bugfix
Status
Accepted
Close date
2006-11-18 12:51
Assigned to
 
Index: src/sdk/manager.cpp
===================================================================
--- src/sdk/manager.cpp    (revision 3222)
+++ src/sdk/manager.cpp    (working copy)
@@ -326,12 +326,12 @@
             wxMemoryFSHandler::AddFile(file, buf, len);
         }
         wxXmlResource::Get()->Load(memoryFile);
-        delete buf;
+        delete[] buf;
         return true;
     }
     catch (...)
     {
-        delete buf;
+        delete[] buf;
         return false;
     }
 }