Commit 3fce7d79 authored by Olivier Blin's avatar Olivier Blin Committed by Olivier Blin
Browse files

Fix QWaylandDrag leak in the compositor


Make it a scoped pointer.

Change-Id: Iaeef87cad2022496ebe3a7c746b02584fac9a485
Reviewed-by: default avatarLaszlo Agocs <laszlo.agocs@theqtcompany.com>
parent dac4fcd9
Branches
Tags
No related merge requests found
Showing with 2 additions and 2 deletions
......@@ -352,7 +352,7 @@ QWaylandInputDevice *InputDevice::handle() const
QWaylandDrag *InputDevice::dragHandle() const
{
return m_dragHandle;
return m_dragHandle.data();
}
const DataDevice *InputDevice::dataDevice() const
......
......@@ -128,7 +128,7 @@ public:
private:
QWaylandInputDevice *m_handle;
QWaylandDrag *m_dragHandle;
QScopedPointer<QWaylandDrag> m_dragHandle;
Compositor *m_compositor;
QWaylandInputDevice::CapabilityFlags m_capabilities;
......
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