diff options
author | Paul Olav Tvete <paul.tvete@theqtcompany.com> | 2016-02-15 12:09:01 +0100 |
---|---|---|
committer | Paul Olav Tvete <paul.tvete@theqtcompany.com> | 2016-02-15 11:15:21 +0000 |
commit | 600d845ff4a89982dd6a8c9fa0dd60b2bf861ff5 (patch) | |
tree | 34d6ef5080350f11787a137683fe9db6db358879 | |
parent | 2adae188cb916d5a6ffbee65abf4ee8144de9ec2 (diff) |
Fix memory corruption
Don't use references to temporary objects.
Change-Id: I786c90273ac835309fe5ac4ecc3372de185e490e
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@theqtcompany.com>
-rw-r--r-- | src/imports/compositor/qwaylandquickcompositorplugin.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/imports/compositor/qwaylandquickcompositorplugin.cpp b/src/imports/compositor/qwaylandquickcompositorplugin.cpp index b380f575c..c18c6d672 100644 --- a/src/imports/compositor/qwaylandquickcompositorplugin.cpp +++ b/src/imports/compositor/qwaylandquickcompositorplugin.cpp @@ -76,8 +76,8 @@ public: } private: bool m_useResource; - const QDir &m_qmlDir; - const QString &m_qrcPath; + const QDir m_qmlDir; + const QString m_qrcPath; }; |