From dc4854f916461d68ea403cdbda507993acb69c64 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C4=83t=C4=83lin=20R=C4=83ceanu?= Date: Tue, 26 Feb 2019 23:36:14 +0200 Subject: [PATCH] Do not reallocate base class member, which also led to a leak --- src/qt/dcclient.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/qt/dcclient.cpp b/src/qt/dcclient.cpp index 6d49661d2b..6ce6a4ff2e 100644 --- a/src/qt/dcclient.cpp +++ b/src/qt/dcclient.cpp @@ -97,8 +97,6 @@ wxClientDCImpl::wxClientDCImpl( wxDC *owner, wxWindow *win ) { m_window = win; - m_qtPainter = new QPainter(); - m_pict.reset(new QPicture()); m_ok = m_qtPainter->begin( m_pict.get() );