Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Controls
  New Posts New Posts RSS Feed - CXTColorPicker memory leak ?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CXTColorPicker memory leak ?

 Post Reply Post Reply
Author
Message
kanitamildasan View Drop Down
Senior Member
Senior Member
Avatar

Joined: 01 February 2006
Status: Offline
Points: 102
Post Options Post Options   Thanks (0) Thanks(0)   Quote kanitamildasan Quote  Post ReplyReply Direct Link To This Post Topic: CXTColorPicker memory leak ?
    Posted: 19 March 2009 at 2:19am
Hi,

The newed CXTColorPopup seem to be a mem leak.

void CXTColorPicker::OnShowPopup()
{
    // Get the size of the picker button.
    CRect rcWindow;
    GetWindowRect(&rcWindow);

    // Create the color popup window.
    CXTColorPopup *pColorPopup = new CXTColorPopup(TRUE);

    if (m_pExtendedColors)
    {
        pColorPopup->SetColors(m_pExtendedColors, m_nExtendedColors, m_nCols);
    }

    pColorPopup->Create(rcWindow, this, m_dwPopup, GetColor(), GetDefaultColor());
    pColorPopup->SetFocus();
}

Thanks

Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.125 seconds.