It's hard to say anything without a prior look on the code.

I hope you are using new/delete in the appropriate way, i.e. allocate with new, release with delete, alocate with new [], release with delete [].