From: Vadim Zeitlin Date: Sat, 18 Jan 2003 01:51:05 +0000 (+0000) Subject: fixed resource leak in MemoryHDC (closes bug 670016) X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/1b80ba97f3579a3db07da4ab9ef1eb97bbe7dd3d fixed resource leak in MemoryHDC (closes bug 670016) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18806 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/msw/private.h b/include/wx/msw/private.h index f4cb8b3908..390a7007b9 100644 --- a/include/wx/msw/private.h +++ b/include/wx/msw/private.h @@ -356,7 +356,7 @@ class MemoryHDC { public: MemoryHDC() { m_hdc = ::CreateCompatibleDC(NULL); } - ~MemoryHDC() { ::DeleteObject(m_hdc); } + ~MemoryHDC() { ::DeleteDC(m_hdc); } operator HDC() const { return m_hdc; }