projects
/
platform
/
upstream
/
qtdeclarative.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
326c4d8
)
Fix memory leak in QQmlLocaleData
author
Liang Jian
<jianliang79@gmail.com>
Tue, 4 Nov 2014 09:18:15 +0000
(17:18 +0800)
committer
Simon Hausmann
<simon.hausmann@digia.com>
Tue, 4 Nov 2014 12:40:32 +0000
(13:40 +0100)
Call the correct destructor in QQmlLocaleData::destroy() to prevent memory
leak.
Change-Id: Id5b7657443521fbb46486bfbc5575d914c7c7b71
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
src/qml/qml/qqmllocale_p.h
patch
|
blob
|
history
diff --git
a/src/qml/qml/qqmllocale_p.h
b/src/qml/qml/qqmllocale_p.h
index
a29b86f
..
3787517
100644
(file)
--- 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)->
~QQmlLocale
Data();
+ static_cast<QQmlLocaleData *>(that)->
d()->~
Data();
}
};