PlatformXcb.cpp: Use custom deleter for xcb types

Authored by fabiank on Aug 26 2019, 7:06 PM.

Description

PlatformXcb.cpp: Use custom deleter for xcb types

std::unique_ptr uses std::default_delete, which calls delete on the
pointer managed by the unique_ptr. However, the xcb types were not
allocated with new, but with free. Hence, tools like asan will report a
malloc/free missmatch. This is generally not an issue in practice, but
can be annoying when debugging.

To remedy this, we use a custom deleter which simply uses free instead
of delete.

Details

Committed
fabiankAug 26 2019, 7:33 PM
Differential Revision
D23474: PlatformXcb.cpp: Use custom deleter for xcb types
Parents
R166:7f809fc94e9b: Add autosave feature
Branches
Unknown
Tags
Unknown