summaryrefslogtreecommitdiff
path: root/plugins/pychrysalide/glibext/binarycursor.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/pychrysalide/glibext/binarycursor.c')
-rw-r--r--plugins/pychrysalide/glibext/binarycursor.c6
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;
}