fixed resource leak in MemoryHDC (closes bug 670016)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@18806 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2003-01-18 01:51:05 +00:00
parent 4e51e03f4f
commit 0706d7cf53

View File

@@ -344,7 +344,7 @@ class MemoryHDC
{
public:
MemoryHDC() { m_hdc = ::CreateCompatibleDC(NULL); }
~MemoryHDC() { ::DeleteObject(m_hdc); }
~MemoryHDC() { ::DeleteDC(m_hdc); }
operator HDC() const { return m_hdc; }