diff options
author | Lauro Neto <lauro.neto@openbossa.org> | 2010-02-19 17:02:58 -0300 |
---|---|---|
committer | Marcelo Lira <marcelo.lira@openbossa.org> | 2010-02-19 17:44:03 -0300 |
commit | be1f91e9f6849312a68b17a7677aa9133fbd45c3 (patch) | |
tree | 422468c0758576577c3effa4ff50de7dade169f3 /libshiboken/helper.cpp | |
parent | 5f80d538253837cf474fe10601374be40a2b8b98 (diff) |
Fixing array deallocation in example
Reviewed by Marcelo Lira <marcelo.lira@openbossa.org>
Diffstat (limited to 'libshiboken/helper.cpp')
-rw-r--r-- | libshiboken/helper.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libshiboken/helper.cpp b/libshiboken/helper.cpp index 3346484e4..2072aa99c 100644 --- a/libshiboken/helper.cpp +++ b/libshiboken/helper.cpp @@ -91,7 +91,7 @@ sequenceToIntArray(PyObject* obj, bool zeroTerminated) PyErr_SetString(PyExc_TypeError, "Sequence of ints expected"); Py_DECREF(item); if (array) - delete array; + delete[] array; return NULL; } else { array[i] = PyInt_AsLong(item); |