when _cairo_xlib_display_acquire does not return SUCCESS,
'display' is not initialized:
so after BAIL: it is better to use priv->device and not
The patch for this Bug is submitted.
and the link for the patch is as follows:
Thanks, fix pushed:
Author: Arpit Jain <firstname.lastname@example.org>
Date: Mon Jul 6 14:13:06 2015 -0700
xlib: Fix deferencing of uninitialised 'display'
Initialising 'display' to NULL and checking before deferencing during display->base.
This patch will check the deferencing of uninitialised 'display' in case,
_cairo_xlib_display_acquire does not return CAIRO_STATUS_SUCCESS.
Signed-off-by: Arpit Jain <email@example.com>
Reviewed-by: Bryce Harrington <firstname.lastname@example.org>