Skip to content
Commit a17de595 authored by Wolfgang Bauer's avatar Wolfgang Bauer
Browse files

[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
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment