OSDN Git Service

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>
Fri, 11 Jan 2019 16:43:42 +0000 (16:43 +0000)
commit734f78a783a9f470f3d318e9aab9cc359fb9c0c4
tree125bcf3c42336690dfe0c76c625219e6c0508077
parentd1f14bade80eade92fb3167e2bfd5a9f819f6067
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>
(cherry picked from commit a539316485ddda074ca1b71aebf4a29b65af87c3)
src/loader/loader_dri3_helper.c