summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKonstantin Ritt <ritt.ks@gmail.com>2015-03-15 18:49:48 +0400
committerKonstantin Ritt <ritt.ks@gmail.com>2015-03-16 11:05:25 +0000
commit3a268419f29180248504bcd93a455935bdf791b7 (patch)
tree59bac4e0e32843f017244b701660138f4a61f831 /src
parentc5b11638cde7d30e381abe794958c762fd8c66f9 (diff)
[QFrameAllocator] Do not leak private data
Change-Id: Id50a6e7c95980edbc98f1f1b9d08d6175ceba517 Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
Diffstat (limited to 'src')
-rw-r--r--src/core/resources/qframeallocator.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/resources/qframeallocator.h b/src/core/resources/qframeallocator.h
index 26b31919a..91c8c1c5f 100644
--- a/src/core/resources/qframeallocator.h
+++ b/src/core/resources/qframeallocator.h
@@ -44,6 +44,7 @@
#endif
#include <QDebug>
+#include <QScopedPointer>
#include <QVector>
#include <Qt3DCore/qt3dcore_global.h>
@@ -86,7 +87,7 @@ public:
private:
Q_DECLARE_PRIVATE(QFrameAllocator)
- QFrameAllocatorPrivate *d_ptr;
+ const QScopedPointer<QFrameAllocatorPrivate> d_ptr;
};
} // Qt3D