https://bugs.kde.org/show_bug.cgi?id=436287

David Edmundson <k...@davidedmundson.co.uk> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |k...@davidedmundson.co.uk

--- Comment #1 from David Edmundson <k...@davidedmundson.co.uk> ---
>From the trace it would appear like libinput_device_group_get_user_data doesn't
get cleared when we remove a device.

i.e

we call integrateDevice:
        auto tablet = static_cast<KWaylandServer::TabletV2Interface
*>(libinput_device_group_get_user_data(deviceGroup));

this is null, so we create a tablet and set the user data
then we create our tablet device


but then due to fwupd we call removeDevice() on both the tablet and tablet
device

This does not explicitly call `libinput_device_group_set_user_data(myObject,
null);


So the next time we add a device libinput_device_group_get_user_data returns a
dangling pointer.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to