diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2020-05-28 23:29:24 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2020-05-28 23:29:32 (GMT) |
commit | 5060f746a2ea51e14282b02bd374f9550c925827 (patch) | |
tree | 5cfd195d09568f13f919cbe060f8cf253eda4ed2 /plugins/pychrysalide/arch/operands/rename.c | |
parent | ce174b991223c85afba55a24e7adc9c8156f7d48 (diff) |
Updated the Python bindings for targetable operands.
Diffstat (limited to 'plugins/pychrysalide/arch/operands/rename.c')
-rw-r--r-- | plugins/pychrysalide/arch/operands/rename.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/plugins/pychrysalide/arch/operands/rename.c b/plugins/pychrysalide/arch/operands/rename.c index 7a5be98..60985db 100644 --- a/plugins/pychrysalide/arch/operands/rename.c +++ b/plugins/pychrysalide/arch/operands/rename.c @@ -441,12 +441,14 @@ static GRenamedOperand *py_renameable_operand_build_wrapper(const GRenameableOpe if (ret == 1) g_object_ref(G_OBJECT(result)); - Py_DECREF(pyret); + PyErr_Clear(); - Py_DECREF(args); + Py_DECREF(pyret); } + Py_DECREF(args); + } Py_DECREF(pyobj); |