Plus it's "delete[]" for arrays...
not sure if "delete array" will still lead to memory leak (only the first element got deleted)
Edit: just googled about that and "delete" works in your case also, cuz both arrays are an array of the basic data type (no destructor). But delete[] makes more sense, so use that instead
Edit2: I'm talking about line 673 and line 674 in ur source code
Last edited by feisty2; 17th December 2016 at 03:02.
|