1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-23 06:44:38 +01:00

Fix #19250: MusicObjects do not free their preview images (#19264)

* Fix: MusicObjects do not free their preview images

* Update changelog

* remove unneeded preview check on MusicObject
This commit is contained in:
Josh Trzebiatowski
2023-01-23 23:55:31 -06:00
committed by GitHub
parent 19f0e202a8
commit d6027a111a
2 changed files with 5 additions and 0 deletions

View File

@@ -80,6 +80,10 @@ void MusicObject::Load()
void MusicObject::Unload()
{
LanguageFreeObjectString(NameStringId);
GfxObjectFreeImages(_previewImageId, GetImageTable().GetCount());
_hasPreview = false;
_previewImageId = 0;
NameStringId = 0;
}