Applied patch [ 1382552 ] Fixes GDI-ressource leak in wxStaticBitmap

Robert N.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36926 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2006-01-17 16:08:59 +00:00
parent 0975a8a065
commit 3dece6c4bc
2 changed files with 12 additions and 2 deletions

View File

@@ -59,7 +59,7 @@ protected:
virtual WXDWORD MSWGetStyle(long style, WXDWORD *exstyle) const;
// ctor/dtor helpers
void Init() { m_isIcon = true; m_image = NULL; }
void Init() { m_isIcon = true; m_image = NULL; m_currentHandle = 0; }
void Free();
// true if icon/bitmap is valid
@@ -71,6 +71,8 @@ protected:
// we can have either an icon or a bitmap
bool m_isIcon;
wxGDIImage *m_image;
// handle used in last call to STM_SETIMAGE
HGDIOBJ m_currentHandle;
private:
DECLARE_DYNAMIC_CLASS(wxStaticBitmap)