diff options
Diffstat (limited to 'hw')
-rw-r--r-- | hw/xquartz/xpr/dri.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/hw/xquartz/xpr/dri.c b/hw/xquartz/xpr/dri.c index 4f9c97c04..8bae6b009 100644 --- a/hw/xquartz/xpr/dri.c +++ b/hw/xquartz/xpr/dri.c @@ -728,8 +728,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; |