Fix memory leak in QQmlComponent::createObject
authorSimon Hausmann <simon.hausmann@digia.com>
Sat, 21 Jun 2014 08:56:00 +0000 (10:56 +0200)
committerSimon Hausmann <simon.hausmann@digia.com>
Mon, 23 Jun 2014 10:34:51 +0000 (12:34 +0200)
commit714d9d95484907378b46292df7aec0832f557f1d
treea2fa6446a723bcb79d68cfcb3d5dd715ccc9b084
parentfca40e7cf81338e4c22ef25fa0b3fe0f691632b7
Fix memory leak in QQmlComponent::createObject

Regression introduced with 5.3.0. Prevent the leak of the object creator
on repeated createObject calls by using a scoped pointer.

Change-Id: Ib4fe7c9c6926c2390f7ae78f3287bb7da5f60527
Task-number: QTBUG-39742
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
src/qml/qml/qqmlcomponent.cpp
src/qml/qml/qqmlcomponent_p.h