We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aad8643 commit fed926dCopy full SHA for fed926d
src/wayland/meta-wayland-dma-buf.c
@@ -288,9 +288,12 @@ static const struct wl_buffer_interface dma_buf_buffer_impl =
288
MetaWaylandDmaBufBuffer *
289
meta_wayland_dma_buf_from_buffer (MetaWaylandBuffer *buffer)
290
{
291
+ if (!buffer->resource)
292
+ return NULL;
293
+
294
if (wl_resource_instance_of (buffer->resource, &wl_buffer_interface,
295
&dma_buf_buffer_impl))
- return wl_resource_get_user_data (buffer->resource);
296
+ return wl_resource_get_user_data (buffer->resource);
297
298
return NULL;
299
}
0 commit comments