View Single Post
Old 17th December 2016, 02:39   #36  |  Link
feisty2
I'm Siri
 
feisty2's Avatar
 
Join Date: Oct 2012
Location: void
Posts: 2,633
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.
feisty2 is offline   Reply With Quote