memleak: Add back object release for uc->cpu

This commit is contained in:
danghvu 2016-10-03 14:21:47 -05:00
parent b7ad7f180c
commit 6aea0aee58

1
uc.c
View file

@ -305,6 +305,7 @@ uc_err uc_close(uc_engine *uc)
object_unref(uc, OBJECT(uc->machine_state->accelerator)); object_unref(uc, OBJECT(uc->machine_state->accelerator));
object_unref(uc, OBJECT(uc->machine_state)); object_unref(uc, OBJECT(uc->machine_state));
object_unref(uc, OBJECT(uc->cpu));
object_unref(uc, OBJECT(&uc->io_mem_notdirty)); object_unref(uc, OBJECT(&uc->io_mem_notdirty));
object_unref(uc, OBJECT(&uc->io_mem_unassigned)); object_unref(uc, OBJECT(&uc->io_mem_unassigned));
object_unref(uc, OBJECT(&uc->io_mem_rom)); object_unref(uc, OBJECT(&uc->io_mem_rom));