ubuntu-webapps-bugs team mailing list archive
-
ubuntu-webapps-bugs team
-
Mailing list archive
-
Message #02099
[Bug 1410350] [NEW] Leak in UI delegates if the root of the Component isn't an Item
Public bug reported:
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
** Affects: oxide
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
WebApps bug tracking, which is subscribed to Oxide.
https://bugs.launchpad.net/bugs/1410350
Title:
Leak in UI delegates if the root of the Component isn't an Item
Status in Oxide Webview:
New
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
To manage notifications about this bug go to:
https://bugs.launchpad.net/oxide/+bug/1410350/+subscriptions
Follow ups
References