diff options
author | Liang Jian <jianliang79@gmail.com> | 2014-11-04 17:18:15 +0800 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@digia.com> | 2014-11-04 13:40:32 +0100 |
commit | 6cbb84d24f157cf630a87195e88cf700e1777ebf (patch) | |
tree | 1b7aea503e4203451f4179534db6f84cfe0291ab /src/qml | |
parent | 326c4d80f2ca68b2f677e5f86570417cbca467b9 (diff) |
Fix memory leak in QQmlLocaleData
Call the correct destructor in QQmlLocaleData::destroy() to prevent memory
leak.
Change-Id: Id5b7657443521fbb46486bfbc5575d914c7c7b71
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/qml')
-rw-r--r-- | src/qml/qml/qqmllocale_p.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/qml/qqmllocale_p.h b/src/qml/qml/qqmllocale_p.h index a29b86fbea..3787517038 100644 --- a/src/qml/qml/qqmllocale_p.h +++ b/src/qml/qml/qqmllocale_p.h @@ -174,7 +174,7 @@ struct QQmlLocaleData : public QV4::Object private: static void destroy(Managed *that) { - static_cast<QQmlLocaleData *>(that)->~QQmlLocaleData(); + static_cast<QQmlLocaleData *>(that)->d()->~Data(); } }; |