mirror of
https://github.com/labwc/labwc.git
synced 2026-04-12 08:21:13 -04:00
Drop tmp_buffer if no texture allocated
This commit is contained in:
parent
6249a3e61c
commit
8d5bfe1e0e
1 changed files with 2 additions and 0 deletions
|
|
@ -115,6 +115,8 @@ magnify(struct output *output, struct wlr_buffer *output_buffer, struct wlr_box
|
||||||
}
|
}
|
||||||
if (!tmp_texture) {
|
if (!tmp_texture) {
|
||||||
wlr_log(WLR_ERROR, "Failed to allocate temporary texture");
|
wlr_log(WLR_ERROR, "Failed to allocate temporary texture");
|
||||||
|
wlr_buffer_drop(tmp_buffer);
|
||||||
|
tmp_buffer = NULL;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue