X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/edaa81ae5d6d5fbcc353911319bdc6dc7ed685ea..520e470fdd0daef09c77938db642e4583933c90d:/src/generic/treectrl.cpp?ds=inline diff --git a/src/generic/treectrl.cpp b/src/generic/treectrl.cpp index e6504c9bec..2008aa3fba 100644 --- a/src/generic/treectrl.cpp +++ b/src/generic/treectrl.cpp @@ -381,6 +381,8 @@ wxTreeCtrl::wxTreeCtrl(wxWindow *parent, wxWindowID id, wxTreeCtrl::~wxTreeCtrl() { + if (m_hilightBrush) delete m_hilightBrush; + if (m_anchor) delete m_anchor; } bool wxTreeCtrl::Create(wxWindow *parent, wxWindowID id, @@ -932,7 +934,7 @@ void wxTreeCtrl::AdjustMyScrollbars() } } -void wxTreeCtrl::PaintLevel( wxGenericTreeItem *item, wxPaintDC &dc, int level, int &y ) +void wxTreeCtrl::PaintLevel( wxGenericTreeItem *item, wxDC &dc, int level, int &y ) { int horizX = level*m_indent; @@ -1086,7 +1088,7 @@ void wxTreeCtrl::OnMouse( const wxMouseEvent &event ) } } -void wxTreeCtrl::CalculateLevel( wxGenericTreeItem *item, wxPaintDC &dc, int level, int &y ) +void wxTreeCtrl::CalculateLevel( wxGenericTreeItem *item, wxDC &dc, int level, int &y ) { int horizX = level*m_indent;