summaryrefslogtreecommitdiff
path: root/plugins/androhelpers
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2016-02-28 17:39:48 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2016-03-01 20:15:47 (GMT)
commit2245e2b3c4f4ff96cf462e76e24c04d4d0941996 (patch)
treefe32bed6dd26c4b4fa144c42db19771f02ca3ef5 /plugins/androhelpers
parent11047009c222d3dba1380e63c3099cce0dbc6996 (diff)
Dealt with the prototypes from the Dex pool.
Diffstat (limited to 'plugins/androhelpers')
-rw-r--r--plugins/androhelpers/params.c2
-rw-r--r--plugins/androhelpers/switch.c2
-rw-r--r--plugins/androhelpers/try_n_catch.c2
3 files changed, 6 insertions, 0 deletions
diff --git a/plugins/androhelpers/params.c b/plugins/androhelpers/params.c
index df56fca..4bf2f6b 100644
--- a/plugins/androhelpers/params.c
+++ b/plugins/androhelpers/params.c
@@ -143,6 +143,8 @@ static void visit_all_method_operands(const GDexMethod *method, GArchInstruction
start = g_binary_routine_get_address(routine);
end = start + g_binary_routine_get_size(routine);
+ g_object_unref(G_OBJECT(routine));
+
for (iter = g_arch_instruction_find_by_address(instrs, start, true);
iter != NULL;
iter = g_arch_instruction_get_next_iter(instrs, iter, end))
diff --git a/plugins/androhelpers/switch.c b/plugins/androhelpers/switch.c
index a5a8a75..8387962 100644
--- a/plugins/androhelpers/switch.c
+++ b/plugins/androhelpers/switch.c
@@ -341,6 +341,8 @@ static void look_for_switch_instructions(const GDexMethod *method, GArchInstruct
start = g_binary_routine_get_address(routine);
end = start + g_binary_routine_get_size(routine);
+ g_object_unref(G_OBJECT(routine));
+
for (iter = g_arch_instruction_find_by_address(instrs, start, true);
iter != NULL;
iter = g_arch_instruction_get_next_iter(instrs, iter, end))
diff --git a/plugins/androhelpers/try_n_catch.c b/plugins/androhelpers/try_n_catch.c
index d2c6043..83be896 100644
--- a/plugins/androhelpers/try_n_catch.c
+++ b/plugins/androhelpers/try_n_catch.c
@@ -394,6 +394,8 @@ static void look_for_exception_handlers(const GLoadedBinary *binary, const GDexF
if (handlers != NULL) free(handlers);
if (count != NULL) free(count);
+ g_object_unref(G_OBJECT(routine));
+
}