mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2024-12-23 01:55:33 +00:00
Fixed double free in win32 threads and changed free() to g_free(). (#722)
This commit is contained in:
parent
c6de7930c9
commit
ee294eebb0
|
@ -97,7 +97,9 @@ void *qemu_thread_join(QemuThread *thread)
|
|||
ret = data->ret;
|
||||
assert(data->mode != QEMU_THREAD_DETACHED);
|
||||
DeleteCriticalSection(&data->cs);
|
||||
data->uc->qemu_thread_data = NULL;
|
||||
g_free(data);
|
||||
data = NULL;
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue