Merge pull request #9472 from jacob-baines/mismatch

Fix mismatching new/delete
This commit is contained in:
Nay committed 2013-03-20 03:52:44 -07:00
commit a44319a99d
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -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;
}
+1 -1
View File
@@ -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 )