GDI leak in CXTPPopupControl |
Post Reply |
Author | |
AlxB
Newbie Joined: 12 February 2010 Location: Ukraine Status: Offline Points: 1 |
Post Options
Thanks(0)
Posted: 12 February 2010 at 3:50am |
Hi!
When I used pop-up control I've noticed a GDI resource leak in the function HRGN CXTPPopupControl::BitmapToRegion(CXTPImageManagerIcon* pIcon) file XTPPopupControl.cpp. A handle that is created as: HBITMAP hbm32 = CXTPImageManager::Create32BPPDIBSection(dcMemDC, nWidth, nHeight, &lpBits); will be never freed later. In my code I simply change "raw" HBITMAP into CBitmap class to solve this problem. I use version 12 and AFAIK it is not corrected in 13 version as well. Thanks. |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |