Fix mismatch new VS new[] and delete VS delete[]

Thanks to valgrind!