diff options
author | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2011-09-18 22:04:09 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2011-10-21 16:54:45 +0200 |
commit | acd09c21f7e3f261b584eaf9136966439eaf3a8b (patch) | |
tree | 16a36b29f1f576a11003ba099124abd691ed8e56 /src/plugins/platforms/directfb/qdirectfbbackingstore.h | |
parent | 9e54d1deaba5fea1427f2f844b99e62ff73206d3 (diff) |
[directfb] Use QScopedPointer to manage heap allocated objects
Use QScopedPointer to avoid trying to manually delete objects. For
some of the cases the leak would only be viewable when things are
getting shut down. Leave in some more warnings for cleaning it up,
e.g. the m_eventBuffer of the Input is leaked and the input task will
only stop after another key event.
Change-Id: Ic54568343605b4ab7094a7dece40e22250184a37
Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
Diffstat (limited to 'src/plugins/platforms/directfb/qdirectfbbackingstore.h')
-rw-r--r-- | src/plugins/platforms/directfb/qdirectfbbackingstore.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/plugins/platforms/directfb/qdirectfbbackingstore.h b/src/plugins/platforms/directfb/qdirectfbbackingstore.h index aed78b6f93..677d8281ba 100644 --- a/src/plugins/platforms/directfb/qdirectfbbackingstore.h +++ b/src/plugins/platforms/directfb/qdirectfbbackingstore.h @@ -53,7 +53,6 @@ class QDirectFbBackingStore : public QPlatformBackingStore { public: QDirectFbBackingStore(QWindow *window); - ~QDirectFbBackingStore(); QPaintDevice *paintDevice(); void flush(QWindow *window, const QRegion ®ion, const QPoint &offset); @@ -66,9 +65,8 @@ public: private: void lockSurfaceToImage(); - QPixmap *m_pixmap; + QScopedPointer<QPixmap> m_pixmap; QBlittablePlatformPixmap *m_pmdata; - IDirectFBSurface *m_dfbSurface; }; |