diff options
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/fmtp/parser.c | 2 | ||||
-rw-r--r-- | plugins/pychrysa/arch/immediate.c | 16 |
2 files changed, 5 insertions, 13 deletions
diff --git a/plugins/fmtp/parser.c b/plugins/fmtp/parser.c index ea1e5d8..96aeb11 100644 --- a/plugins/fmtp/parser.c +++ b/plugins/fmtp/parser.c @@ -113,7 +113,7 @@ static bool parse_field_definition(const fmt_field_def *def, GBinFormat *format, { imm = G_IMM_OPERAND(g_arch_instruction_get_operand(instr, i)); - g_imm_operand_set_default_display(&imm, def->disp_rules[i], G_SHARE_CONTAINER(instr)); + g_imm_operand_set_default_display(imm, def->disp_rules[i]); // TODO : unref(imm) diff --git a/plugins/pychrysa/arch/immediate.c b/plugins/pychrysa/arch/immediate.c index 69efa97..f1ec125 100644 --- a/plugins/pychrysa/arch/immediate.c +++ b/plugins/pychrysa/arch/immediate.c @@ -249,9 +249,7 @@ static int py_imm_operand_set_padding_by_default(PyObject *self, PyObject *value operand = G_IMM_OPERAND(pygobject_get(self)); assert(operand != NULL); - g_imm_operand_pad_by_default(&operand, padding, NULL); - - pygobject_set(self, operand); + g_imm_operand_pad_by_default(operand, padding); return 0; @@ -319,9 +317,7 @@ static int py_imm_operand_set_padding(PyObject *self, PyObject *value, void *clo operand = G_IMM_OPERAND(pygobject_get(self)); assert(operand != NULL); - g_imm_operand_pad(&operand, padding, NULL); - - pygobject_set(self, operand); + g_imm_operand_pad(operand, padding); return 0; @@ -395,9 +391,7 @@ static int py_imm_operand_set_default_display(PyObject *self, PyObject *value, v operand = G_IMM_OPERAND(pygobject_get(self)); assert(operand != NULL); - g_imm_operand_set_default_display(&operand, display, NULL); - - pygobject_set(self, operand); + g_imm_operand_set_default_display(operand, display); return 0; @@ -471,9 +465,7 @@ static int py_imm_operand_set_display(PyObject *self, PyObject *value, void *clo operand = G_IMM_OPERAND(pygobject_get(self)); assert(operand != NULL); - g_imm_operand_set_display(&operand, display, NULL); - - pygobject_set(self, operand); + g_imm_operand_set_display(operand, display); return 0; |