diff options
Diffstat (limited to 'plugins/pychrysalide/analysis/binary.c')
-rw-r--r-- | plugins/pychrysalide/analysis/binary.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/plugins/pychrysalide/analysis/binary.c b/plugins/pychrysalide/analysis/binary.c index a98d11a..e137f87 100644 --- a/plugins/pychrysalide/analysis/binary.c +++ b/plugins/pychrysalide/analysis/binary.c @@ -75,16 +75,13 @@ static PyObject *py_loaded_binary_get_disassembled_cache(PyObject *, void *); static PyObject *py_loaded_binary_new(PyTypeObject *type, PyObject *args, PyObject *kwds) { PyObject *result; /* Instance à retourner */ - PyObject *format_obj; /* Objet pour le contenu */ - int ret; /* Bilan de lecture des args. */ GExeFormat *format; /* Instance GLib correspondante*/ + int ret; /* Bilan de lecture des args. */ GLoadedContent *binary; /* Version GLib du binaire */ - ret = PyArg_ParseTuple(args, "O!", get_python_executable_format_type(), &format_obj); + ret = PyArg_ParseTuple(args, "O&", convert_to_executable_format, &format); if (!ret) return NULL; - format = G_EXE_FORMAT(pygobject_get(format_obj)); - g_object_ref(G_OBJECT(format)); binary = g_loaded_binary_new(format); |