mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-30 11:19:51 +02:00
fix mismatched malloc() / delete [], fixes # 106
This commit is contained in:
@@ -978,7 +978,7 @@ std::string Client::AddStamp(GameSave * saveData)
|
||||
stampStream.write((const char *)gameData, gameDataLength);
|
||||
stampStream.close();
|
||||
|
||||
delete[] gameData;
|
||||
free(gameData);
|
||||
|
||||
stampIDs.push_front(saveID.str());
|
||||
|
||||
|
Reference in New Issue
Block a user