mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 16:44:52 +00:00
xwayland: Handle NULL xwl_pixmap in xwl_shm_pixmap_get_wl_buffer
This commit is contained in:
committed by
Michel Dänzer
parent
f50ed265cf
commit
613e4466b4
@@ -314,7 +314,12 @@ xwl_shm_destroy_pixmap(PixmapPtr pixmap)
|
||||
struct wl_buffer *
|
||||
xwl_shm_pixmap_get_wl_buffer(PixmapPtr pixmap)
|
||||
{
|
||||
return xwl_pixmap_get(pixmap)->buffer;
|
||||
struct xwl_pixmap *xwl_pixmap = xwl_pixmap_get(pixmap);
|
||||
|
||||
if (!xwl_pixmap)
|
||||
return NULL;
|
||||
|
||||
return xwl_pixmap->buffer;
|
||||
}
|
||||
|
||||
Bool
|
||||
|
||||
Reference in New Issue
Block a user