Fix GC issue with incubators
authorLars Knoll <lars.knoll@digia.com>
Mon, 14 Oct 2013 14:48:30 +0000 (16:48 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Tue, 15 Oct 2013 04:43:34 +0000 (06:43 +0200)
commitdf267e50195c00f2085ed93ceb5f59ed81f89206
tree2f8eb9115b4b1620028b795e52d2d96a460c9446
parent1be51cc3e7c9ca5256a52136d6fcc9c22c997625
Fix GC issue with incubators

Never use multiple inheritance with Managed subclasses,
as this can easily mess up garbage collection. In this
case the vtable from the QQmlIncubator would be added
before the start of the Managed pointer. That would
not work correctly for the memory manager that casts
void pointers to Managed pointers.

Change-Id: I1c1ebc6c44bd9cb77eea49738e86ce3374c7ef80
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
src/qml/qml/qqmlcomponent.cpp