mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-11-04 13:29:51 -05:00
Don't create buffer from NULL pointer
Fixes regression introduced in f58d8ca1bd.
This commit is contained in:
parent
93331ff40a
commit
ac5c5e7853
1 changed files with 2 additions and 0 deletions
|
|
@ -264,6 +264,8 @@ create_buffer_from_png(struct wlsc_compositor *ec,
|
||||||
struct wl_buffer *buffer;
|
struct wl_buffer *buffer;
|
||||||
|
|
||||||
pixels = wlsc_load_image(filename, width, height);
|
pixels = wlsc_load_image(filename, width, height);
|
||||||
|
if(pixels == NULL)
|
||||||
|
return NULL;
|
||||||
|
|
||||||
buffer = ec->create_buffer(ec, width, height,
|
buffer = ec->create_buffer(ec, width, height,
|
||||||
&ec->compositor.premultiplied_argb_visual,
|
&ec->compositor.premultiplied_argb_visual,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue