summaryrefslogtreecommitdiff
path: root/src/radeon.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/radeon.h')
-rw-r--r--src/radeon.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/radeon.h b/src/radeon.h
index c914a585..0bf6d372 100644
--- a/src/radeon.h
+++ b/src/radeon.h
@@ -691,11 +691,12 @@ static inline Bool radeon_set_pixmap_bo(PixmapPtr pPix, struct radeon_bo *bo)
return TRUE;
if (priv) {
- if (priv->bo == bo)
- return TRUE;
+ if (priv->bo) {
+ if (priv->bo == bo)
+ return TRUE;
- if (priv->bo)
radeon_bo_unref(priv->bo);
+ }
if (!bo) {
free(priv);