mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-30 08:50:33 +00:00
Merge pull request #11875 from hrydgard/font-doublefree-callback-fix
sceFontLib: Don't call the callback if double-free.
This commit is contained in:
commit
238211f50a
@ -436,7 +436,9 @@ public:
|
||||
}
|
||||
u32 args[2] = { params_.userDataAddr, (u32)handle_ };
|
||||
// TODO: The return value of this is leaking.
|
||||
__KernelDirectMipsCall(params_.freeFuncAddr, 0, args, 2, false);
|
||||
if (handle_) { // Avoid calling free-callback on double-free
|
||||
__KernelDirectMipsCall(params_.freeFuncAddr, 0, args, 2, false);
|
||||
}
|
||||
handle_ = 0;
|
||||
fonts_.clear();
|
||||
isfontopen_.clear();
|
||||
|
Loading…
Reference in New Issue
Block a user