mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-07-08 22:50:44 +00:00
Remove double-free
This was previously released at uc_close ../uc.c:286 if (uc->release) uc->release(uc->tcg_ctx); Which effectively does: object_unref(uc, OBJECT(uc->root));
This commit is contained in:
parent
8932463f9d
commit
9f94191a64
3
uc.c
3
uc.c
|
@ -299,9 +299,6 @@ uc_err uc_close(uc_engine *uc)
|
||||||
free(uc->ram_list.dirty_memory[i]);
|
free(uc->ram_list.dirty_memory[i]);
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: remove uc->root (created with object_new())
|
|
||||||
uc->root->free(uc->root);
|
|
||||||
|
|
||||||
// free hooks and hook lists
|
// free hooks and hook lists
|
||||||
for (i = 0; i < UC_HOOK_MAX; i++) {
|
for (i = 0; i < UC_HOOK_MAX; i++) {
|
||||||
cur = uc->hook[i].head;
|
cur = uc->hook[i].head;
|
||||||
|
|
Loading…
Reference in a new issue