aboutsummaryrefslogtreecommitdiffstats
path: root/libshiboken/helper.cpp
diff options
context:
space:
mode:
authorLauro Neto <lauro.neto@openbossa.org>2010-02-19 17:02:58 -0300
committerMarcelo Lira <marcelo.lira@openbossa.org>2010-02-19 17:44:03 -0300
commitbe1f91e9f6849312a68b17a7677aa9133fbd45c3 (patch)
tree422468c0758576577c3effa4ff50de7dade169f3 /libshiboken/helper.cpp
parent5f80d538253837cf474fe10601374be40a2b8b98 (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.cpp2
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);