Print Page | Close Window

CXTColorPicker memory leak ?

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Controls
Forum Description: Topics Related to Codejock Controls
URL: http://forum.codejock.com/forum_posts.asp?TID=13733
Printed Date: 12 December 2024 at 12:39pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTColorPicker memory leak ?
Posted By: kanitamildasan
Subject: CXTColorPicker memory leak ?
Date 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




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net