Browse files

Merge pull request #9472 from jacob-baines/mismatch

Fix mismatching new/delete
  • Loading branch information...
2 parents 7a46950 + 88dd08d commit a44319a99d24dfce82b8ef7d5a74699f65fc6c46 @DDuarte DDuarte 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 a44319a

Please sign in to comment.