[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
parent
2e65fa92
Please register or sign in to comment