summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichel Dänzer <daenzer@vmware.com>2009-07-02 15:03:53 +0200
committerMichel Dänzer <michel@daenzer.net>2009-07-02 15:03:53 +0200
commit2a622168606d98c404708b879e6417c8f7d7305c (patch)
tree0339e24e4956dfd384acdb6b1da1e89872d381a7
parent36a4ea5a9c7062f4c8aa7480bb7488ce2062390f (diff)
Test BO pointer before passing it to radeon_bo_unref().
-rw-r--r--src/radeon_exa.c3
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);
}