summaryrefslogtreecommitdiff
path: root/src/arch/operands/register.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/arch/operands/register.c')
-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. *
* *