Do not reallocate base class member, which also led to a leak

This commit is contained in:
Cătălin Răceanu
2019-02-26 23:36:14 +02:00
parent e6e6b1ea38
commit dc4854f916

View File

@@ -97,8 +97,6 @@ wxClientDCImpl::wxClientDCImpl( wxDC *owner, wxWindow *win )
{ {
m_window = win; m_window = win;
m_qtPainter = new QPainter();
m_pict.reset(new QPicture()); m_pict.reset(new QPicture());
m_ok = m_qtPainter->begin( m_pict.get() ); m_ok = m_qtPainter->begin( m_pict.get() );