diff options
-rw-r--r-- | src/radeon_exa.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/radeon_exa.c b/src/radeon_exa.c index b28f726c..ca4eda07 100644 --- a/src/radeon_exa.c +++ b/src/radeon_exa.c @@ -405,7 +405,8 @@ static void RADEONEXADestroyPixmap(ScreenPtr pScreen, void *driverPriv) if (!driverPriv) return; - radeon_bo_unref(driver_priv->bo); + if (driver_priv->bo) + radeon_bo_unref(driver_priv->bo); xfree(driverPriv); } |