I don't typically use C++, I program in straight C (planning on making the move soon ). I do believe that the "delete" keyword should only be used when you are doing dynamic allocation, or in other words, when you allocate space to a pointer using the "new" keyword. I could be wrong, but I think your array is allocated on the stack, and not the heap.
In C, its equivalent is malloc/free.
If you are afraid if your program will leak, just run it through valgrind or something and take a look yourself.
In C, its equivalent is malloc/free.
If you are afraid if your program will leak, just run it through valgrind or something and take a look yourself.