summaryrefslogtreecommitdiff
path: root/plugins/androhelpers/try_n_catch.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/androhelpers/try_n_catch.c')
-rw-r--r--plugins/androhelpers/try_n_catch.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/androhelpers/try_n_catch.c b/plugins/androhelpers/try_n_catch.c
index cf33926..1fa3971 100644
--- a/plugins/androhelpers/try_n_catch.c
+++ b/plugins/androhelpers/try_n_catch.c
@@ -438,6 +438,7 @@ bool process_exception_handlers(GLoadedBinary *binary, bool link)
{
method = g_dex_class_get_method(class, false, j);
look_for_exception_handlers(binary, format, method, link);
+ g_object_unref(G_OBJECT(method));
}
meth_count = g_dex_class_count_methods(class, true);
@@ -445,8 +446,11 @@ bool process_exception_handlers(GLoadedBinary *binary, bool link)
{
method = g_dex_class_get_method(class, true, j);
look_for_exception_handlers(binary, format, method, link);
+ g_object_unref(G_OBJECT(method));
}
+ g_object_unref(G_OBJECT(class));
+
}
g_object_unref(G_OBJECT(format));