|
-
June 9th, 2009, 06:43 PM
#5
Re: destructors
 Originally Posted by GCDEF
If the derived class has members that are created using new and you don't specifically delete them, you have a leak. Deleting your class won't delete memory it allocated.
Hi GCDEF,
I was still composing my earlier reply (and cross-referencing my code and c++ book) and didnt see your reply.
This explains it.
Thanks a lot.
best,
sgiri
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|