Commit 41ba4b39 authored by Giuseppe D'Angelo's avatar Giuseppe D'Angelo
Browse files

QShapedPixmapWindow: do not leak the backing store


Change-Id: Id7cc8cbbcd62c546055d525473f90d2bad0c144a
Reviewed-by: default avatarLaszlo Agocs <laszlo.agocs@digia.com>
Reviewed-by: default avatarFriedemann Kleint <Friedemann.Kleint@digia.com>
Showing with 7 additions and 0 deletions
...@@ -52,6 +52,12 @@ QShapedPixmapWindow::QShapedPixmapWindow() ...@@ -52,6 +52,12 @@ QShapedPixmapWindow::QShapedPixmapWindow()
m_backingStore = new QBackingStore(this); m_backingStore = new QBackingStore(this);
} }
QShapedPixmapWindow::~QShapedPixmapWindow()
{
delete m_backingStore;
m_backingStore = 0;
}
void QShapedPixmapWindow::render() void QShapedPixmapWindow::render()
{ {
QRect rect(QPoint(), geometry().size()); QRect rect(QPoint(), geometry().size());
......
...@@ -56,6 +56,7 @@ class QShapedPixmapWindow : public QWindow ...@@ -56,6 +56,7 @@ class QShapedPixmapWindow : public QWindow
Q_OBJECT Q_OBJECT
public: public:
QShapedPixmapWindow(); QShapedPixmapWindow();
~QShapedPixmapWindow();
void render(); void render();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment