Leak in UI delegates if the root of the Component isn't an Item

Bug #1410350 reported by Chris Coulson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Oxide
Triaged
Medium
Unassigned

Bug Description

Currently, oxide::qquick::WebPopupMenuDelegate (and others) do something like this:

QQmlContext* baseContext = component->creationContext();
context_.reset(new QQmlContext(baseContext));
item_.reset(qobject_cast<QQuickItem *>(component->beginCreate(context_.data())));

However, if the root of the Component isn't an Item, the qobject_cast here will return NULL and the result of QQmlComponent::beginCreate() will leak forever

Changed in oxide:
importance: Undecided → Medium
status: New → Triaged
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.