mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-29 17:23:40 +01:00
Very small memory leak fix
This commit is contained in:
1 parent
2a74a0b98a
commit
cf83be8b3c
1 file changed
+1
@@ -147,6 +147,7 @@ bool GLRenderManager::ThreadFrame() {
|
||||
// We got a task! We can now have pushMutex_ unlocked, allowing the host to
|
||||
// push more work when it feels like it, and just start working.
|
||||
if (task->runType == GLRRunType::EXIT) {
|
||||
delete task;
|
||||
// Oh, host wanted out. Let's leave, and also let's notify the host.
|
||||
// This is unlike Vulkan too which can just block on the thread existing.
|
||||
std::unique_lock<std::mutex> lock(syncMutex_);
|
||||
|
||||
Reference in new issue
Block a user