summaryrefslogtreecommitdiffstats
path: root/tests/samplebinding/typesystem_sample.xml
diff options
context:
space:
mode:
authorRenato Filho <renato.filho@openbossa.org>2010-07-20 14:00:44 -0300
committerRenato Filho <renato.filho@openbossa.org>2010-08-18 15:21:20 -0300
commitb4c007c3ee9932b7a384b2b4fcdc8b4be2dfbad9 (patch)
treee106cc99a076d3c4677b6afb4857fcb36b1351f9 /tests/samplebinding/typesystem_sample.xml
parentda5a88b3b53b4769e77eff1d48cc9a2c7152f6c2 (diff)
downloadshiboken-b4c007c3ee9932b7a384b2b4fcdc8b4be2dfbad9.tar.gz
shiboken-b4c007c3ee9932b7a384b2b4fcdc8b4be2dfbad9.tar.xz
shiboken-b4c007c3ee9932b7a384b2b4fcdc8b4be2dfbad9.zip
fixed tests exported symbols.
Reviewer: Hugo Parente Lima <hugo.pl@gmail.com> Luciano Wolf <luciano.wolf@openbossa.org>
Diffstat (limited to 'tests/samplebinding/typesystem_sample.xml')
-rw-r--r--tests/samplebinding/typesystem_sample.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/samplebinding/typesystem_sample.xml b/tests/samplebinding/typesystem_sample.xml
index b3e05d4e..f23320cc 100644
--- a/tests/samplebinding/typesystem_sample.xml
+++ b/tests/samplebinding/typesystem_sample.xml
@@ -757,7 +757,7 @@
<conversion-rule class="native">
int numItems = PySequence_Size(%PYARG_1);
- int %out[numItems];
+ int *%out = new int[numItems]; //memory leak
for (int i=0; i &lt; numItems; i++) {
%out[i] = %CONVERTTOCPP[int](PySequence_GetItem(%PYARG_1, i));
}