Check for stuff like this: X *x = new X; delete[] x;
X *x = new X[10]; delete x;
Log in to post a comment.