diff options
Diffstat (limited to 'plugins/dex')
-rw-r--r-- | plugins/dex/python/format.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/plugins/dex/python/format.c b/plugins/dex/python/format.c index f798981..04473ef 100644 --- a/plugins/dex/python/format.c +++ b/plugins/dex/python/format.c @@ -69,16 +69,13 @@ static PyObject *py_dex_format_get_pool(PyObject *, void *); static PyObject *py_dex_format_new(PyTypeObject *type, PyObject *args, PyObject *kwds) { PyObject *result; /* Instance à retourner */ - PyObject *content_obj; /* Objet pour le contenu */ - int ret; /* Bilan de lecture des args. */ GBinContent *content; /* Instance GLib du contenu */ + int ret; /* Bilan de lecture des args. */ GExeFormat *format; /* Création GLib à transmettre */ - ret = PyArg_ParseTuple(args, "O!", get_python_binary_content_type(), &content_obj); + ret = PyArg_ParseTuple(args, "O&", convert_to_binary_content, &content); if (!ret) return NULL; - content = G_BIN_CONTENT(pygobject_get(content_obj)); - format = g_dex_format_new(content); if (format == NULL) |