Commit 79519407 authored by Arjen Hiemstra's avatar Arjen Hiemstra Committed by Vlad Zahorodnii
Browse files

Don't use release() on a unique_ptr if we don't intend to release ownership

There is nothing indicating that `OffscreenQuickScene::rootItem()`
releases ownership. Additionally, calling it multiple times currently
means we get a nullptr the second time we call it which crashes the
outputlocator effect.
parent cf520543
Pipeline #218988 passed with stage
in 13 minutes and 41 seconds
......@@ -692,7 +692,7 @@ QQmlContext *OffscreenQuickScene::rootContext() const
QQuickItem *OffscreenQuickScene::rootItem() const
{
return d->quickItem.release();
return d->quickItem.get();
}
} // namespace KWin
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment