diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/arch/operands/immediate.c | 5 | ||||
| -rw-r--r-- | src/arch/register.c | 4 | 
2 files changed, 7 insertions, 2 deletions
diff --git a/src/arch/operands/immediate.c b/src/arch/operands/immediate.c index e2cf5e6..769826b 100644 --- a/src/arch/operands/immediate.c +++ b/src/arch/operands/immediate.c @@ -1825,6 +1825,9 @@ static void g_known_imm_operand_renamed_interface_init(GRenamedOperandInterface  static void g_known_imm_operand_dispose(GKnownImmOperand *operand)  { +    if (operand->alt_text != NULL) +        free(operand->alt_text); +      G_OBJECT_CLASS(g_known_imm_operand_parent_class)->dispose(G_OBJECT(operand));  } @@ -1881,6 +1884,8 @@ GArchOperand *g_known_imm_operand_new(const GImmOperand *old, const char *alt)      g_bit_unlock(&src->lock, HOLE_LOCK_BIT); +    result->alt_text = strdup(alt); +      return G_ARCH_OPERAND(result);  } diff --git a/src/arch/register.c b/src/arch/register.c index e08aa8b..0309c62 100644 --- a/src/arch/register.c +++ b/src/arch/register.c @@ -170,8 +170,8 @@ guint g_arch_register_hash(const GArchRegister *reg)  /******************************************************************************  *                                                                             * -*  Paramètres  : a = premier opérande à consulter.                            * -*                b = second opérande à consulter.                             * +*  Paramètres  : a = premier registre à consulter.                            * +*                b = second registre à consulter.                             *  *                                                                             *  *  Description : Compare un registre avec un autre.                           *  *                                                                             *  | 
