You want to delete the memory region associated with the new.
wchar_t* char1 = new wchar_t[5000];
delete [] char1;
If the delete operator gets a NULL value to operate on, then it will do nothing. But in the above two lines, the delete operator gets the actual address associated with the new operator, and so will be able to properly deallocate the space created by the new operator.