Cleanup after dynamically created CStatic

I've created a CStatic using

CStatic m_StaticMyWin;
m_StaticMyWin.Create(...

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

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
rickatseasoftAsked:
Who is Participating?
 
AndyAinscowFreelance programmer / ConsultantCommented:
Falling out of scope should be enough (assuming the parent of the CStatic is the dialog being dismissed)
0
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.