mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-05-05 02:58:06 +02:00
XQuartz: Add diagnostic error checking to xp_destroy_surface.
This occurred to me in hindsight after the last commit. If the original developer had done this, we would have noticed the problem sooner. (cherry picked from commitaa0a57996f) (cherry picked from commitec95a9c829)
This commit is contained in:
parent
d0bb22ed78
commit
1d8bbdc3b8
1 changed files with 6 additions and 1 deletions
|
|
@ -733,8 +733,13 @@ DRISurfaceNotify(xp_surface_id id, int kind)
|
|||
|
||||
if (kind == AppleDRISurfaceNotifyDestroyed)
|
||||
{
|
||||
xp_destroy_surface(pDRIDrawablePriv->sid);
|
||||
xp_error error;
|
||||
|
||||
error = xp_destroy_surface(pDRIDrawablePriv->sid);
|
||||
|
||||
if(error)
|
||||
ErrorF("%s: xp_destroy_surface failed: %d\n", __func__, error);
|
||||
|
||||
/* Guard against reuse, even though we are freeing after this. */
|
||||
pDRIDrawablePriv->sid = 0;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue