diff options
Diffstat (limited to 'src/radeon.h')
-rw-r--r-- | src/radeon.h | 7 |
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); |