Merge pull request #9472 from jacob-baines/mismatch

Fix mismatching new/delete
This commit is contained in:
Nay
2013-03-20 03:52:44 -07:00
2 changed files with 2 additions and 2 deletions

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;
}

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 )