Fixes new[]+delete mismatch.