Fix ASAN warnings in XDGForeignV2Interface

Authored by davidedmundson on Dec 13 2017, 10:27 PM.

Description

Fix ASAN warnings in XDGForeignV2Interface

Summary:
The current code captures a char* from a wayland event in a lambda.
By creating the QString first when we capture that by value we'll
implicitly shallow copy it.

The other issue was
someHash.erase(it);
*it->foo();

Even though where the iterator points to is still valid, the iterator
itself is an object that gets modified in erase which ASAN didn't like.

Test Plan:
Ran test.
Those particular errors went away
Tests passed

Subscribers: plasma-devel, Frameworks

Tags: Plasma on Wayland, Frameworks

Differential Revision: https://phabricator.kde.org/D9319

Details

Committed
davidedmundsonDec 14 2017, 7:31 AM
Differential Revision
D9319: Fix ASAN warnings in XDGForeignV2Interface
Parents
R127:a608e978c6be: Fix exlude generated file from automoc feature
Branches
Unknown
Tags
Unknown