mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-01-23 14:00:27 +01:00
xlib: Move the Display pointer nullify into destroy from finish
Oops, should have checked with more than just the one test before claiming victory. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
parent
84a3b6e2d0
commit
eb09a68638
1 changed files with 1 additions and 4 deletions
|
|
@ -177,8 +177,6 @@ _cairo_xlib_display_finish (void *abstract_display)
|
|||
|
||||
cairo_device_release (&display->base);
|
||||
}
|
||||
|
||||
display->display = NULL;
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
@ -237,8 +235,7 @@ _cairo_xlib_close_display (Display *dpy, XExtCodes *codes)
|
|||
}
|
||||
CAIRO_MUTEX_UNLOCK (_cairo_xlib_display_mutex);
|
||||
|
||||
assert (display != NULL);
|
||||
|
||||
display->display = NULL; /* catch any later invalid access */
|
||||
cairo_device_destroy (&display->base);
|
||||
|
||||
/* Return value in accordance with requirements of
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue