summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/directfb/qdirectfbbackingstore.h
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2011-09-19 00:57:45 +0200
committerQt by Nokia <qt-info@nokia.com>2011-10-21 16:54:45 +0200
commit500dc2a6f888e283c6d40730bdf7c2998ee0437b (patch)
treeeb1803d6ac87fb68f211fb2ffadd59cff805c0dc /src/plugins/platforms/directfb/qdirectfbbackingstore.h
parent405894fc39cdab937c38b917adf4e8d390f80790 (diff)
[directfb] Introduce the QDirectFBPointer from QWS/gfxdrivers
Introduce QDirectFBPointer and use it throughout the code to fix various resource leaks in the DirectFB backend. Fix the surface ownership of the IDirectFBSurface in the Blittable/BackingStore code. Change-Id: I0d4572eaab80b3558e644f26d76222461bf37bbb 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.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/plugins/platforms/directfb/qdirectfbbackingstore.h b/src/plugins/platforms/directfb/qdirectfbbackingstore.h
index 677d8281ba..2b129d547e 100644
--- a/src/plugins/platforms/directfb/qdirectfbbackingstore.h
+++ b/src/plugins/platforms/directfb/qdirectfbbackingstore.h
@@ -47,6 +47,8 @@
#include <directfb.h>
+#include "qdirectfbconvenience.h"
+
QT_BEGIN_NAMESPACE
class QDirectFbBackingStore : public QPlatformBackingStore
@@ -67,7 +69,7 @@ private:
QScopedPointer<QPixmap> m_pixmap;
QBlittablePlatformPixmap *m_pmdata;
- IDirectFBSurface *m_dfbSurface;
+ QDirectFBPointer<IDirectFBSurface> m_dfbSurface;
};
QT_END_NAMESPACE