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]