mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-29 17:38:16 +03:00
Clear musicWriteBlob after writing BinaryMusic.vvv
Since musicWriteBlob is a temporary object that gets destroyed at the end of musicclass::init(), in order to make sure we don't leak memory and lose all the pointers to the blocks we just allocated in musicWriteBlob, we need to call its clear() method after writing BinaryMusic.vvv.
This commit is contained in:
@@ -69,6 +69,7 @@ void musicclass::init()
|
||||
#undef FOREACH_TRACK
|
||||
|
||||
musicWriteBlob.writeBinaryBlob("data/BinaryMusic.vvv");
|
||||
musicWriteBlob.clear();
|
||||
#endif
|
||||
|
||||
num_mmmmmm_tracks = 0;
|
||||
|
||||
Reference in New Issue
Block a user