loader: free error state, when checking the drawable type
authorKirill Burtsev <kirill.burtsev@qt.io>
Wed, 5 Dec 2018 15:54:27 +0000 (15:54 +0000)
committerEmil Velikov <emil.l.velikov@gmail.com>
Mon, 10 Dec 2018 16:19:55 +0000 (16:19 +0000)
commita539316485ddda074ca1b71aebf4a29b65af87c3
treeedd9cca95e4f0c97245bc3b22b9d90e3ab8fd7dd
parent032f247921bd90843820846d07f06ec4ab33d5f2
loader: free error state, when checking the drawable type

Currently we distinguish if the drawable is a window or pixmap by
checking xcb_present_select_input throws an error or not.

Yet, we don't always free the error state returned by xcb.

Cc: Kirill Burtsev <kirill.burtsev@qt.io>
Cc: Boyan Ding <boyan.j.ding@gmail.com>
Fixes: 6bd9ba7d074 ("loader: Add dri3 helper")
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
[Emil: add commit message, fixes tag]
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
src/loader/loader_dri3_helper.c