This topic is now archived and is closed to further replies.


Quick Class Question (C++)

Recommended Posts

Hi, I'm playing with linked lists using classes, and when I started making the "RemoveNode" function i started wondering something. Since the data nodes in the list are dynamicly allocated (using the 'new' op), when I use the 'delete' op to remove it, will that class's destructor still be called? I dont want memory leaks in my program! Thanks, -J [edited by - jason2jason on August 18, 2002 8:32:03 AM]

Share this post

Link to post
Share on other sites