summaryrefslogtreecommitdiffstats
path: root/src/gui/image/qpixmap_blitter_p.h
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2011-09-20 15:23:03 +0200
committerQt by Nokia <qt-info@nokia.com>2011-09-20 15:49:15 +0200
commitdc4764229a3eef5c0bdbd665f2e24e59398e8c51 (patch)
treeca63b594ef3624041ed4ef58f2aab94bfc77705e /src/gui/image/qpixmap_blitter_p.h
parent3fa945ae7c20c792fc02b68ccf38d0699626195a (diff)
[blitter] Use QScopedPointer for the engine and blittable
Use the QScopedPointer to prevent memory leaks, right now the code appears to be sound but make it more clear that calling ::setBlittable will destroy the old one. Change-Id: Idc71add7cfd429ff5b9d0ea9908d9fff1e7ce74d Merge-request: 59 Reviewed-on: http://codereview.qt-project.org/5243 Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
Diffstat (limited to 'src/gui/image/qpixmap_blitter_p.h')
-rw-r--r--src/gui/image/qpixmap_blitter_p.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/image/qpixmap_blitter_p.h b/src/gui/image/qpixmap_blitter_p.h
index 3ab5cb3da3..3c32e8f919 100644
--- a/src/gui/image/qpixmap_blitter_p.h
+++ b/src/gui/image/qpixmap_blitter_p.h
@@ -83,8 +83,8 @@ public:
#endif //QT_BLITTER_RASTEROVERLAY
protected:
- QBlitterPaintEngine *m_engine;
- QBlittable *m_blittable;
+ QScopedPointer<QBlitterPaintEngine> m_engine;
+ QScopedPointer<QBlittable> m_blittable;
#ifdef QT_BLITTER_RASTEROVERLAY
QImage *m_rasterOverlay;