mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-23 06:44:38 +01:00
* Fix: MusicObjects do not free their preview images * Update changelog * remove unneeded preview check on MusicObject
This commit is contained in:
committed by
GitHub
parent
19f0e202a8
commit
d6027a111a
@@ -80,6 +80,10 @@ void MusicObject::Load()
|
||||
void MusicObject::Unload()
|
||||
{
|
||||
LanguageFreeObjectString(NameStringId);
|
||||
GfxObjectFreeImages(_previewImageId, GetImageTable().GetCount());
|
||||
|
||||
_hasPreview = false;
|
||||
_previewImageId = 0;
|
||||
NameStringId = 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user