summaryrefslogtreecommitdiff
path: root/src/arch
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2019-01-16 17:53:37 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2019-01-16 17:53:37 (GMT)
commit3a4a977678848d7284df585480e4056d5553a4f2 (patch)
treeb9bbe22d6a6d002c57f4d0552bf66fad4de8069a /src/arch
parent69806d75d7a3d7c0501d8205cd561447b52ac0b2 (diff)
Dealt with registers and register operands in the Python bindings.
Diffstat (limited to 'src/arch')
-rw-r--r--src/arch/operands/register.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/arch/operands/register.c b/src/arch/operands/register.c
index 508886b..6196991 100644
--- a/src/arch/operands/register.c
+++ b/src/arch/operands/register.c
@@ -140,8 +140,7 @@ static void g_register_operand_init(GRegisterOperand *operand)
static void g_register_operand_dispose(GRegisterOperand *operand)
{
- if (operand->reg != NULL)
- g_object_unref(G_OBJECT(operand->reg));
+ g_clear_object(&operand->reg);
G_OBJECT_CLASS(g_register_operand_parent_class)->dispose(G_OBJECT(operand));
@@ -215,7 +214,7 @@ static void g_register_operand_print(const GRegisterOperand *operand, GBufferLin
* *
* Paramètres : operand = opérande représentant un registre. *
* *
-* Description : Fournit le registre Dalvik associé à l'opérande. *
+* Description : Fournit le registre associé à l'opérande. *
* *
* Retour : Représentation interne du registre. *
* *