diff options
Diffstat (limited to 'plugins/pychrysalide/analysis/block.c')
-rw-r--r-- | plugins/pychrysalide/analysis/block.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/plugins/pychrysalide/analysis/block.c b/plugins/pychrysalide/analysis/block.c index e282d14..7e6b109 100644 --- a/plugins/pychrysalide/analysis/block.c +++ b/plugins/pychrysalide/analysis/block.c @@ -399,7 +399,7 @@ int convert_to_code_block(PyObject *arg, void *dst) static PyObject *py_block_list_find_by_addr(PyObject *self, PyObject *args) { PyObject *result; /* Conclusion à retourner */ - vmpa2t addr; /* Emplacement ciblé */ + vmpa2t *addr; /* Emplacement ciblé */ int ret; /* Bilan de lecture des args. */ GBlockList *list; /* Liste de blocs manipulée */ GCodeBlock *found; /* Eventuel bloc trouvé */ @@ -409,7 +409,7 @@ static PyObject *py_block_list_find_by_addr(PyObject *self, PyObject *args) list = G_BLOCK_LIST(pygobject_get(self)); - found = g_block_list_find_by_addr(list, &addr); + found = g_block_list_find_by_addr(list, addr); if (found != NULL) { @@ -422,6 +422,8 @@ static PyObject *py_block_list_find_by_addr(PyObject *self, PyObject *args) Py_INCREF(result); } + clean_vmpa_arg(addr); + return result; } |