diff options
| author | MegaMech <7255464+MegaMech@users.noreply.github.com> | 2025-05-23 16:50:26 -0600 |
|---|---|---|
| committer | MegaMech <7255464+MegaMech@users.noreply.github.com> | 2025-05-23 16:50:26 -0600 |
| commit | 25b68921ad4cece662b2d20885103d8cc998dac5 (patch) | |
| tree | bff02190a71052cfc9897444b3e3e0fc19e20718 /src/port/resource/importers/AudioBankFactory.cpp | |
| parent | c4721b2df546b77773e184c8c2ce3b3d83b17542 (diff) | |
| parent | c2ddd2c25626b2797b9f730d77118f0e96131108 (diff) | |
Merge branch 'transformsharedfromptr' of https://github.com/HarbourMasters/SpaghettiKart into transformsharedfromptr
Diffstat (limited to 'src/port/resource/importers/AudioBankFactory.cpp')
| -rw-r--r-- | src/port/resource/importers/AudioBankFactory.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/port/resource/importers/AudioBankFactory.cpp b/src/port/resource/importers/AudioBankFactory.cpp index ee400c1b5..650767881 100644 --- a/src/port/resource/importers/AudioBankFactory.cpp +++ b/src/port/resource/importers/AudioBankFactory.cpp @@ -21,6 +21,7 @@ SM64::AudioBankFactoryV0::ReadResource(std::shared_ptr<Ship::File> file, auto* instrument = new Instrument(); bool valid = reader->ReadUByte(); if(!valid){ + delete instrument; bank->instruments.push_back(nullptr); continue; } |
