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:
parent
c28045b118
commit
41ba4b3956
@ -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());
|
||||
|
@ -56,6 +56,7 @@ class QShapedPixmapWindow : public QWindow
|
||||
Q_OBJECT
|
||||
public:
|
||||
QShapedPixmapWindow();
|
||||
~QShapedPixmapWindow();
|
||||
|
||||
void render();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user