diff options
author | Michel Dänzer <daenzer@vmware.com> | 2009-07-02 15:03:53 +0200 |
---|---|---|
committer | Michel Dänzer <michel@daenzer.net> | 2009-07-02 15:03:53 +0200 |
commit | 2a622168606d98c404708b879e6417c8f7d7305c (patch) | |
tree | 0339e24e4956dfd384acdb6b1da1e89872d381a7 /src/radeon_exa.c | |
parent | 36a4ea5a9c7062f4c8aa7480bb7488ce2062390f (diff) |
Test BO pointer before passing it to radeon_bo_unref().
Diffstat (limited to 'src/radeon_exa.c')
-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); } |