mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-29 05:11:55 +01:00
Merge pull request #9472 from jacob-baines/mismatch
Fix mismatching new/delete
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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 )
|
||||
|
||||
Reference in New Issue
Block a user