Cleanup after dynamically created CStatic

I've created a CStatic using

CStatic m_StaticMyWin;

I also do a
CFont *pFont=m_StaticSomeOther.GetFont();

When I am done with this dialog, do I need to do anything to clean up behind this CStatic, or will falling out of scope be enough.

Thanks, Rick
Who is Participating?
AndyAinscowFreelance programmer / ConsultantCommented:
Falling out of scope should be enough (assuming the parent of the CStatic is the dialog being dismissed)
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.