summaryrefslogtreecommitdiff
path: root/plugins/pychrysa/arch
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2017-07-12 13:07:55 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2017-07-12 13:08:42 (GMT)
commita331ff258895865049bf79bc1629dbc744b7faf5 (patch)
treec4f649ba21afcacf974cc6536f03aa97663a9acd /plugins/pychrysa/arch
parent9b018cede5af54594c0a20847239233153b04ce1 (diff)
Removed the too complex memory share system.
Diffstat (limited to 'plugins/pychrysa/arch')
-rw-r--r--plugins/pychrysa/arch/immediate.c16
1 files changed, 4 insertions, 12 deletions
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;