Permalink
Browse files

Fix mismatching new/delete

  • Loading branch information...
1 parent 7a46950 commit 88dd08d4b0dd22cbfb52ad8c6a08c963b8eb662f baines committed Mar 20, 2013
Showing with 2 additions and 2 deletions.
  1. +1 −1 src/tools/mesh_extractor/DBC.cpp
  2. +1 −1 src/tools/mesh_extractor/Utils.cpp
View
2 src/tools/mesh_extractor/DBC.cpp
@@ -56,7 +56,7 @@ std::string DBC::GetStringByOffset( int offset )
strcpy(d, (const char*)(StringBlock + offset));
d[len] = '\0';
std::string val = std::string(d);
- delete d;
+ delete [] d;
return val;
}
View
2 src/tools/mesh_extractor/Utils.cpp
@@ -226,7 +226,7 @@ void Utils::SaveToDisk( FILE* stream, std::string path )
// Close the filestream
fclose(disk);
// Free the used memory
- delete data;
+ delete [] data;
}
Vector3 Utils::ToWoWCoords( Vector3 vec )

0 comments on commit 88dd08d

Please sign in to comment.