diff options
author | Kirill Burtsev <[email protected]> | 2018-12-05 15:54:27 +0000 |
---|---|---|
committer | Emil Velikov <[email protected]> | 2018-12-10 16:19:55 +0000 |
commit | a539316485ddda074ca1b71aebf4a29b65af87c3 (patch) | |
tree | edd9cca95e4f0c97245bc3b22b9d90e3ab8fd7dd /src/loader/loader_dri3_helper.c | |
parent | 032f247921bd90843820846d07f06ec4ab33d5f2 (diff) |
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 <[email protected]>
Cc: Boyan Ding <[email protected]>
Fixes: 6bd9ba7d074 ("loader: Add dri3 helper")
Reviewed-by: Emil Velikov <[email protected]>
[Emil: add commit message, fixes tag]
Signed-off-by: Emil Velikov <[email protected]>
Diffstat (limited to 'src/loader/loader_dri3_helper.c')
-rw-r--r-- | src/loader/loader_dri3_helper.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/loader/loader_dri3_helper.c b/src/loader/loader_dri3_helper.c index 1981b5f0515..7cd6b1e8ab6 100644 --- a/src/loader/loader_dri3_helper.c +++ b/src/loader/loader_dri3_helper.c @@ -1509,6 +1509,7 @@ dri3_update_drawable(struct loader_dri3_drawable *draw) mtx_unlock(&draw->mtx); return false; } + free(error); draw->is_pixmap = true; xcb_unregister_for_special_event(draw->conn, draw->special_event); draw->special_event = NULL; |