diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2018-05-07 14:24:16 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2018-05-07 14:24:16 (GMT) |
commit | c136e2c4c1ad02ea2e363fbe71ce54c6255793e2 (patch) | |
tree | ba19cc948ac23a3930d9943e94f8e37ec86991c1 /plugins/androhelpers | |
parent | b38035259b6e09c77d87950fe409fb72d09887d3 (diff) |
Extended the Python bindings for the Dex format.
Diffstat (limited to 'plugins/androhelpers')
-rw-r--r-- | plugins/androhelpers/params.c | 4 | ||||
-rw-r--r-- | plugins/androhelpers/switch.c | 4 | ||||
-rw-r--r-- | plugins/androhelpers/try_n_catch.c | 4 |
3 files changed, 12 insertions, 0 deletions
diff --git a/plugins/androhelpers/params.c b/plugins/androhelpers/params.c index d85baca..26f4265 100644 --- a/plugins/androhelpers/params.c +++ b/plugins/androhelpers/params.c @@ -212,6 +212,7 @@ bool replace_parameters(GLoadedBinary *binary) { method = g_dex_class_get_method(class, false, j); visit_all_method_operands(method, instrs); + g_object_unref(G_OBJECT(method)); } meth_count = g_dex_class_count_methods(class, true); @@ -219,8 +220,11 @@ bool replace_parameters(GLoadedBinary *binary) { method = g_dex_class_get_method(class, true, j); visit_all_method_operands(method, instrs); + g_object_unref(G_OBJECT(method)); } + g_object_unref(G_OBJECT(class)); + } g_object_unref(G_OBJECT(proc)); 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)); 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)); |