This is embarrassing

With one little mistake comes a nasty memory leak.  We found this in some of the code i wrote

CMenu* CLMI::GetLenderMenu(void)
{
    //test if lender should show up if not
    if ( !ShowLender() )
        return NULL;

    CMenu* clm = new CMenu();......


Sadly clm was never reclaimed, and MFC redraws the Main menu every time you blink so can you say bad :(

Comments [0]
All comments require the approval of the site owner before being displayed.
Name
E-mail
(will show your gravatar icon)
Home page

Comment (Some html is allowed: a@href@title, b, blockquote@cite, em, i, strike, strong, sub, super, u) where the @ means "attribute." For example, you can use <a href="" title=""> or <blockquote cite="Scott">.  

Enter the code shown (prevents robots):

Live Comment Preview