Qt Declarative (Quick 2)
Go to file
Simon Hausmann 3b5d37ce38 Fix memory corruption when multiple QML engines have JavaScript wrappers for the same QObject
It's possible that the same QObject is exposed to multiple JavaScript
environments, for which we have this "extra" hack in the form of a QMap.  The
common case is that QQmlData has a QV4::WeakValue that points to the JS wrapper
for the object. However in the rare case of multiple exposure, a map in the
other engines stores those references. That map was erroneously storing
pointers to temporary values on the JS stack instead of heap pointers.

Change-Id: I8587f9921a9b4f9efd288326d00cebc25ad0bc12
Task-number: QTBUG-45051
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
2015-05-08 04:08:10 +00:00
bin Update copyright headers 2015-02-12 10:28:11 +00:00
dist Add list of changes for 5.4.2 relative to 5.4.1 2015-04-24 19:07:20 +00:00
examples Fix qml-i18n example 2015-05-05 07:38:58 +00:00
src Fix memory corruption when multiple QML engines have JavaScript wrappers for the same QObject 2015-05-08 04:08:10 +00:00
tests BorderImage support for @2x assets 2015-05-06 14:25:38 +00:00
tools qmlplugindump: add dependencies 2015-04-21 10:37:19 +00:00
.gitattributes Update the git-archive export options 2012-09-10 14:24:05 +02:00
.gitignore Add files generated by tests to gitignore 2014-12-20 20:24:25 +01:00
.gitmodules Prospective fix for builds in the CI system on Windows machines 2013-08-07 11:51:25 +02:00
.qmake.conf Bump version 2015-04-20 12:27:43 +02:00
.tag Update the git-archive export options 2012-09-10 14:24:05 +02:00
LGPL_EXCEPTION.txt Update copyright headers 2015-02-12 10:28:11 +00:00
LICENSE.FDL Add license files mandated by (L)GPL. 2013-02-15 00:03:10 +01:00
LICENSE.LGPLv3 Update copyright headers 2015-02-12 10:28:11 +00:00
LICENSE.LGPLv21 Update copyright headers 2015-02-12 10:28:11 +00:00
qtdeclarative.pro Prospective build fix in the CI system for iOS 2014-02-16 16:06:17 +01:00
sync.profile Fix usage of QtQmlDevTools private headers on OSX with framework builds 2015-03-16 10:27:07 +00:00