Bug 739096 - Don't leave the shm field uninitialized in cairo_xlib_display. r=jrmuizel

This resulted in a valgrind failure on autoland.

Submitted upstream at https://gitlab.freedesktop.org/cairo/cairo/-/merge_requests/170.

Differential Revision: https://phabricator.services.mozilla.com/D113756
This commit is contained in:
Jonathan Kew 2021-04-29 14:33:37 +00:00
Родитель 85b5e499b4
Коммит 685b76ffbe
1 изменённых файлов: 4 добавлений и 1 удалений

Просмотреть файл

@ -43,7 +43,10 @@
#include "cairo-xlib-surface-private.h"
#if !HAVE_X11_EXTENSIONS_XSHM_H || !(HAVE_X11_EXTENSIONS_SHMPROTO_H || HAVE_X11_EXTENSIONS_SHMSTR_H)
void _cairo_xlib_display_init_shm (cairo_xlib_display_t *display) {}
void _cairo_xlib_display_init_shm (cairo_xlib_display_t *display)
{
display->shm = NULL;
}
cairo_surface_t *
_cairo_xlib_surface_get_shm (cairo_xlib_surface_t *surface,