[xembedsniproxy] Fix memleak and possible crash

Authored by wbauer on Jun 17 2017, 5:19 PM.

Description

[xembedsniproxy] Fix memleak and possible crash

Check the return value of xcb_get_window_attributes_reply() to prevent a crash if getting the window attributes would fail for some reason.

Also free the returned structure after usage to avoid memleaks.
This is necessary according to https://xcb.freedesktop.org/windowcontextandmanipulation (see the end of the page).

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

Details

Committed
wbauerJun 17 2017, 5:19 PM
Differential Revision
D6252: [xembedsniproxy] Fix memleak and possible crash
Parents
R120:2e65fa9232d5: Update version number for 5.10.2 GIT_SILENT
Branches
Unknown
Tags
Unknown