diff options
Diffstat (limited to 'plugins/arm/v7/fetch.c')
-rw-r--r-- | plugins/arm/v7/fetch.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/arm/v7/fetch.c b/plugins/arm/v7/fetch.c index bf60d9c..09278c9 100644 --- a/plugins/arm/v7/fetch.c +++ b/plugins/arm/v7/fetch.c @@ -606,7 +606,7 @@ void apply_write_back_from_registers(GArchInstruction *instr, GArchProcessor *pr regop = G_ARMV7_REGISTER_OPERAND(op); - reg_ref = G_ARCH_REGISTER(g_armv7_register_operand_get(regop)); + reg_ref = g_register_operand_get_register(G_REGISTER_OPERAND(regop)); op = _g_arch_instruction_get_operand(instr, 1); assert(G_IS_ARMV7_REGLIST_OPERAND(op)); @@ -623,6 +623,8 @@ void apply_write_back_from_registers(GArchInstruction *instr, GArchProcessor *pr inside = (g_arch_register_compare(reg_ref, G_ARCH_REGISTER(reg)) == 0); + g_object_unref(G_OBJECT(reg)); + } if (!inside) |