Fix audio memory leak

This commit is contained in:
Lurs
2026-03-26 11:02:24 +01:00
parent 7ac96d0251
commit 72e2c71de6
+4
View File
@@ -552,7 +552,11 @@ JAIAudible* Z2Audience::newAudible(const JGeometry::TVec3<f32>& pos, JAISoundID
}
void Z2Audience::deleteAudible(JAIAudible* audible) {
#if TARGET_PC
JKR_DELETE(static_cast<Z2Audible*>(audible));
#else
JKR_DELETE(audible);
#endif
}
Z2Audible::~Z2Audible() {}