summaryrefslogtreecommitdiff
path: root/plugins/pychrysalide/glibext
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2020-06-07 21:27:00 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2020-06-07 21:27:00 (GMT)
commitaf09ab29930ea07eec6118839d53e59af85a6dc8 (patch)
treeb515124ff08852318b07c0883ecc0941a15aa1a8 /plugins/pychrysalide/glibext
parentad1caf61fccd0d74be6ac92c41d83e9b0008ff2b (diff)
Simplified code.
Diffstat (limited to 'plugins/pychrysalide/glibext')
-rw-r--r--plugins/pychrysalide/glibext/binportion.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/plugins/pychrysalide/glibext/binportion.c b/plugins/pychrysalide/glibext/binportion.c
index 3065755..060f001 100644
--- a/plugins/pychrysalide/glibext/binportion.c
+++ b/plugins/pychrysalide/glibext/binportion.c
@@ -155,8 +155,6 @@ static int py_bin_portion_init(PyObject *self, PyObject *args, PyObject *kwds)
vmpa2t *addr; /* Emplacement de portion */
unsigned long long size; /* Taille de la portion */
int ret; /* Bilan de lecture des args. */
- PyObject *new_args; /* Nouveaux arguments épurés */
- PyObject *new_kwds; /* Nouveau dictionnaire épuré */
GBinPortion *portion; /* Portion à manipuler */
static char *kwlist[] = { "code", "addr", "size", NULL };
@@ -182,14 +180,7 @@ static int py_bin_portion_init(PyObject *self, PyObject *args, PyObject *kwds)
/* Initialisation d'un objet GLib */
- new_args = PyTuple_New(0);
- new_kwds = PyDict_New();
-
- ret = PyGObject_Type.tp_init(self, new_args, new_kwds);
-
- Py_DECREF(new_kwds);
- Py_DECREF(new_args);
-
+ ret = forward_pygobjet_init(self);
if (ret == -1)
{
clean_vmpa_arg(addr);