diff options
Diffstat (limited to 'plugins/androhelpers')
-rw-r--r-- | plugins/androhelpers/params.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/plugins/androhelpers/params.c b/plugins/androhelpers/params.c index 908d8c6..ea85b89 100644 --- a/plugins/androhelpers/params.c +++ b/plugins/androhelpers/params.c @@ -149,11 +149,13 @@ static void visit_all_method_operands(const GDexMethod *method, GArchInstruction iter != NULL; iter = g_arch_instruction_get_next_iter(instrs, iter, end)) { - count = g_arch_instruction_count_operands(iter); + g_arch_instruction_lock_operands(iter); + + count = _g_arch_instruction_count_operands(iter); for (i = 0; i < count; i++) { - operand = g_arch_instruction_get_operand(iter, i); + operand = _g_arch_instruction_get_operand(iter, i); if (G_IS_DALVIK_REGISTER_OPERAND(operand)) process_register_operand(method, operand); @@ -163,6 +165,8 @@ static void visit_all_method_operands(const GDexMethod *method, GArchInstruction } + g_arch_instruction_unlock_operands(iter); + } } |