Jump to content
  • Advertisement


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


Quick Class Question (C++)

This topic is 5815 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!