mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-12-23 10:09:43 +01: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:
parent
77748f29f9
commit
7f3ebda8ea
1 changed files with 1 additions and 0 deletions
|
@ -69,6 +69,7 @@ void musicclass::init()
|
||||||
#undef FOREACH_TRACK
|
#undef FOREACH_TRACK
|
||||||
|
|
||||||
musicWriteBlob.writeBinaryBlob("data/BinaryMusic.vvv");
|
musicWriteBlob.writeBinaryBlob("data/BinaryMusic.vvv");
|
||||||
|
musicWriteBlob.clear();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
num_mmmmmm_tracks = 0;
|
num_mmmmmm_tracks = 0;
|
||||||
|
|
Loading…
Reference in a new issue