diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2020-01-08 23:42:44 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2020-01-08 23:42:44 (GMT) |
commit | 43f249445c9c69b9eabeea8be08b6b55a474f1fc (patch) | |
tree | d2ef7c1c464c13fb3fbd8c44b233b83a12df09a1 /plugins/pychrysalide/glibext/binarycursor.c | |
parent | 70dce9d37e6b38c5bee7cfe175dcebd021e3a148 (diff) |
Fixed the link between native and Python locations.
Diffstat (limited to 'plugins/pychrysalide/glibext/binarycursor.c')
-rw-r--r-- | plugins/pychrysalide/glibext/binarycursor.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/plugins/pychrysalide/glibext/binarycursor.c b/plugins/pychrysalide/glibext/binarycursor.c index 92a4b8c..817cc59 100644 --- a/plugins/pychrysalide/glibext/binarycursor.c +++ b/plugins/pychrysalide/glibext/binarycursor.c @@ -109,7 +109,7 @@ static PyObject *py_binary_cursor_new(PyTypeObject *type, PyObject *args, PyObje static PyObject *py_binary_cursor_update(PyObject *self, PyObject *args) { PyObject *result; /* Instance à retourner */ - vmpa2t addr; /* Emplacement fourni */ + vmpa2t *addr; /* Emplacement fourni */ int ret; /* Bilan de lecture des args. */ GBinaryCursor *cursor; /* Version GLib du type */ @@ -128,11 +128,13 @@ static PyObject *py_binary_cursor_update(PyObject *self, PyObject *args) cursor = G_BINARY_CURSOR(pygobject_get(self)); - g_binary_cursor_update(cursor, &addr); + g_binary_cursor_update(cursor, addr); result = Py_None; Py_INCREF(result); + clean_vmpa_arg(addr); + return result; } |