From bb918c033eaccede0d579daecdcb0af452ef7342 Mon Sep 17 00:00:00 2001 From: Dave Beazley Date: Tue, 20 Jun 2000 16:08:06 +0000 Subject: [PATCH] Fixed array deletion problem. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@497 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- SWIG/Lib/array.i | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/SWIG/Lib/array.i b/SWIG/Lib/array.i index d7fafe88c..b592b39b5 100644 --- a/SWIG/Lib/array.i +++ b/SWIG/Lib/array.i @@ -73,7 +73,7 @@ onto the C 'int' datatype. static void int_destroy(int *array) { if (array) { #ifdef __cplusplus - delete array []; + delete [] array; #else free(array); #endif @@ -142,7 +142,7 @@ int int_set(int *array, int index, int value); static void float_destroy(float *array) { if (array) { #ifdef __cplusplus - delete array []; + delete [] array; #else free(array); #endif @@ -184,7 +184,7 @@ int int_set(int *array, int index, int value); static void double_destroy(double *array) { if (array) { #ifdef __cplusplus - delete array []; + delete [] array; #else free(array); #endif @@ -328,7 +328,7 @@ static void string_destroy(char **array) { i++; } #ifdef __cplusplus - delete array []; + delete [] array; #else free(array); #endif