mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-01-09 12:35:39 +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;
|
ret = data->ret;
|
||||||
assert(data->mode != QEMU_THREAD_DETACHED);
|
assert(data->mode != QEMU_THREAD_DETACHED);
|
||||||
DeleteCriticalSection(&data->cs);
|
DeleteCriticalSection(&data->cs);
|
||||||
|
data->uc->qemu_thread_data = NULL;
|
||||||
g_free(data);
|
g_free(data);
|
||||||
|
data = NULL;
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue