summaryrefslogtreecommitdiff
path: root/plugins/androhelpers/switch.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/androhelpers/switch.c')
-rw-r--r--plugins/androhelpers/switch.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/androhelpers/switch.c b/plugins/androhelpers/switch.c
index 5f18b87..2ef6277 100644
--- a/plugins/androhelpers/switch.c
+++ b/plugins/androhelpers/switch.c
@@ -412,6 +412,7 @@ bool extract_switch_info(GLoadedBinary *binary, bool link)
{
method = g_dex_class_get_method(class, false, j);
look_for_switch_instructions(method, instrs, binary, format, link);
+ g_object_unref(G_OBJECT(method));
}
meth_count = g_dex_class_count_methods(class, true);
@@ -419,8 +420,11 @@ bool extract_switch_info(GLoadedBinary *binary, bool link)
{
method = g_dex_class_get_method(class, true, j);
look_for_switch_instructions(method, instrs, binary, format, link);
+ g_object_unref(G_OBJECT(method));
}
+ g_object_unref(G_OBJECT(class));
+
}
g_object_unref(G_OBJECT(proc));