mirror of
https://github.com/yshui/picom.git
synced 2024-11-11 13:51:02 -05:00
x: fix leak in x_create_picture_with_pictfmt_and_pixmap
This commit is contained in:
parent
fdecbb98f8
commit
df7b994d00
1 changed files with 1 additions and 0 deletions
1
src/x.c
1
src/x.c
|
@ -299,6 +299,7 @@ x_create_picture_with_pictfmt_and_pixmap(xcb_connection_t *c,
|
||||||
free(buf);
|
free(buf);
|
||||||
if (e) {
|
if (e) {
|
||||||
log_error_x_error(e, "failed to create picture");
|
log_error_x_error(e, "failed to create picture");
|
||||||
|
free(e);
|
||||||
return XCB_NONE;
|
return XCB_NONE;
|
||||||
}
|
}
|
||||||
return tmp_picture;
|
return tmp_picture;
|
||||||
|
|
Loading…
Reference in a new issue