Fix mismatching new/delete

This commit is contained in:
baines
2013-03-20 06:47:30 -04:00
parent 7a46950e4a
commit 88dd08d4b0
2 changed files with 2 additions and 2 deletions
+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 )