You might want to look in your constructor(s) first. If you don’t have one, you need one if you are dealing with pointers. I assume in your destructor(s) you have some “delete” to deallocate memory. Make sure you initialize all pointers to 0 or NULL in your constructor(s).
Hope this help.