QShapedPixmapWindow: do not leak the backing store

Change-Id: Id7cc8cbbcd62c546055d525473f90d2bad0c144a
Reviewed-by: Laszlo Agocs <laszlo.agocs@digia.com>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
This commit is contained in:
Giuseppe D'Angelo 2014-10-30 10:23:34 +01:00
parent c28045b118
commit 41ba4b3956
2 changed files with 7 additions and 0 deletions

View File

@ -52,6 +52,12 @@ QShapedPixmapWindow::QShapedPixmapWindow()
m_backingStore = new QBackingStore(this);
}
QShapedPixmapWindow::~QShapedPixmapWindow()
{
delete m_backingStore;
m_backingStore = 0;
}
void QShapedPixmapWindow::render()
{
QRect rect(QPoint(), geometry().size());

View File

@ -56,6 +56,7 @@ class QShapedPixmapWindow : public QWindow
Q_OBJECT
public:
QShapedPixmapWindow();
~QShapedPixmapWindow();
void render();