e2f45002fc
Currently if the function fails, we'll fall into two false assumptions:
- the the count is zero
- that the storage pointer is safe for free()
I've just fixed the former (in glamor + xwayland) and have no
plans on adding yet another workaround for the latter.
Simply zero both variables. Regardless if the implementation is missing
the callback or it foobars with output variables (normally a bad idea).
Bonus points - this fixes a bug where we feed garbage to free() further
down ;-)
Fixes:
|
||
---|---|---|
.. | ||
dri3_priv.h | ||
dri3_request.c | ||
dri3_screen.c | ||
dri3.c | ||
dri3.h | ||
Makefile.am | ||
meson.build |