diff options
author | Aaron Plattner <aplattner@nvidia.com> | 2009-07-17 15:10:46 -0700 |
---|---|---|
committer | Aaron Plattner <aplattner@nvidia.com> | 2009-07-24 13:11:43 -0700 |
commit | af8047f7816b39be7015e8cbbe085c57bb354592 (patch) | |
tree | bbe774b29bad5cb3a911e7b689ca1fc2c8c29d20 /miext/damage | |
parent | c80ed4945ef6dd50473fab871211b71b3d20dc3c (diff) |
Damage: Add devPrivates to DamageRec
Signed-off-by: Aaron Plattner <aplattner@nvidia.com>
Diffstat (limited to 'miext/damage')
-rw-r--r-- | miext/damage/damage.c | 3 | ||||
-rw-r--r-- | miext/damage/damagestr.h | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/miext/damage/damage.c b/miext/damage/damage.c index 2c7813492..b7ec92a5b 100644 --- a/miext/damage/damage.c +++ b/miext/damage/damage.c @@ -1953,6 +1953,7 @@ DamageCreate (DamageReportFunc damageReport, pDamage->damageDestroy = damageDestroy; pDamage->damageMarker = NULL; pDamage->pScreen = pScreen; + pDamage->devPrivates = NULL; (*pScrPriv->funcs.Create) (pDamage); @@ -2056,6 +2057,8 @@ DamageDestroy (DamagePtr pDamage) if (pDamage->damageDestroy) (*pDamage->damageDestroy) (pDamage, pDamage->closure); (*pScrPriv->funcs.Destroy) (pDamage); + dixFreePrivates(pDamage->devPrivates); + pDamage->devPrivates = NULL; REGION_UNINIT (pScreen, &pDamage->damage); REGION_UNINIT (pScreen, &pDamage->pendingDamage); xfree (pDamage); diff --git a/miext/damage/damagestr.h b/miext/damage/damagestr.h index 812075a15..d7435b2a1 100644 --- a/miext/damage/damagestr.h +++ b/miext/damage/damagestr.h @@ -54,6 +54,7 @@ typedef struct _damage { RegionRec pendingDamage; /* will be flushed post submission at the latest */ RegionRec backupDamage; /* for use with damageMarker */ ScreenPtr pScreen; + PrivateRec *devPrivates; } DamageRec; typedef struct _damageScrPriv { |