mirror of
https://github.com/brl/mutter.git
synced 2024-11-21 23:50:41 -05:00
61c173b777
XLib renderer saves its data as the object cogl user data, however this data is free'd as part of the object destruction that happens before free'ing the renderer in _cogl_renderer_free(), from where we're calling the renderer disconnect vfunc. Thus in _cogl_xlib_renderer_disconnect() we happen to get an invalid pointer to CoglXlibRenderer and we try access to it in order to close the X11 display. This causes all the cogl tests to crash when G_SLICE=always-malloc is set and when using MALLOC_CHECK_. Fix this using the renderer winsys custom data instead of using cogl object data for storing the CoglXlibRenderer, and handling the destruction of it manually. As bonus this also makes access to the renderer data faster. https://gitlab.gnome.org/GNOME/mutter/merge_requests/581 |
||
---|---|---|
.. | ||
cogl | ||
cogl-gles2 | ||
cogl-pango | ||
cogl-path | ||
test-fixtures | ||
tests | ||
.gitignore | ||
cogl-config.h.meson | ||
cogl-mutter-config.h.in | ||
config-custom.h | ||
meson.build |