зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
85b5e499b4
Коммит
685b76ffbe
|
@ -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,
|
||||
|
|
Загрузка…
Ссылка в новой задаче