Skip to content

xkb: ProcXkbGetGeometry(): fix memleak

If XkbComputeGetGeometryReplySize() returns an error, the XkbGeometryRec won't be freed, since we're bailing out too early and not calling XkbSendGeometry().

Having XkbSendGeometry() responsible for freeing that struct is unnecessarily complicated anyways, so move that to ProcXkbGetGeometry() and do it also when XkbComputeGetGeometryReplySize() failed.

Signed-off-by: Enrico Weigelt, metux IT consult info@metux.net

Merge request reports

Loading