1
0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-06-16 17:48:29 +02: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:
Misa 2021-02-15 17:44:19 -08:00 committed by Ethan Lee
parent 77748f29f9
commit 7f3ebda8ea

View File

@ -69,6 +69,7 @@ void musicclass::init()
#undef FOREACH_TRACK
musicWriteBlob.writeBinaryBlob("data/BinaryMusic.vvv");
musicWriteBlob.clear();
#endif
num_mmmmmm_tracks = 0;