summaryrefslogtreecommitdiff
path: root/miext/damage/damage.c
diff options
context:
space:
mode:
Diffstat (limited to 'miext/damage/damage.c')
-rw-r--r--miext/damage/damage.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/miext/damage/damage.c b/miext/damage/damage.c
index 2fae03fc2..de14d5cc8 100644
--- a/miext/damage/damage.c
+++ b/miext/damage/damage.c
@@ -1696,7 +1696,7 @@ DamageCreate(DamageReportFunc damageReport,
damageScrPriv(pScreen);
DamagePtr pDamage;
- pDamage = dixAllocateObjectWithPrivates(DamageRec, PRIVATE_DAMAGE);
+ pDamage = calloc(1, sizeof(DamageRec));
if (!pDamage)
return 0;
pDamage->pNext = 0;
@@ -1821,7 +1821,7 @@ DamageDestroy(DamagePtr pDamage)
(*pScrPriv->funcs.Destroy) (pDamage);
RegionUninit(&pDamage->damage);
RegionUninit(&pDamage->pendingDamage);
- dixFreeObjectWithPrivates(pDamage, PRIVATE_DAMAGE);
+ free(pDamage);
}
Bool