mirror of
https://github.com/mkxp-z/mkxp-z.git
synced 2025-08-24 07:43:44 +02:00
Fix another potential crash in soundemitter.cpp
This commit is contained in:
parent
97f862662b
commit
d9a6c68d6b
1 changed files with 1 additions and 0 deletions
|
@ -391,6 +391,7 @@ bool SoundEmitter::sandbox_deserialize(const void *&data, mkxp_sandbox::wasm_siz
|
|||
if (filenames[i] != value) {
|
||||
if (filenames[i].empty()) {
|
||||
if (old_buffer != nullptr) {
|
||||
AL::Source::stop(source);
|
||||
SoundBuffer::deref(old_buffer);
|
||||
}
|
||||
atchBufs[i] = nullptr;
|
||||
|
|
Loading…
Add table
Reference in a new issue