summaryrefslogtreecommitdiff
path: root/miext
diff options
context:
space:
mode:
authorAdam Jackson <ajax@redhat.com>2017-03-20 13:42:12 -0400
committerAdam Jackson <ajax@redhat.com>2017-03-21 11:20:26 -0400
commit4e76c2711740b775242170d8e5ee56c7e6829cce (patch)
tree8b6901ab596ead9a11bc3b5ff4d6c05b3e49dc43 /miext
parent40c12a76c2ae57adefd3b1d412387ebbfe2fb784 (diff)
dix: Remove PRIVATE_DAMAGE
None of this is actually wired up to anything, so we can also remove the devPrivates from the DamageRec. The DamageExtRec is what would need devPrivates for selinux labeling, in principle. Signed-off-by: Adam Jackson <ajax@redhat.com> Reviewed-by: Eric Anholt <eric@anholt.net>
Diffstat (limited to 'miext')
-rw-r--r--miext/damage/damage.c4
-rw-r--r--miext/damage/damagestr.h1
2 files changed, 2 insertions, 3 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
diff --git a/miext/damage/damagestr.h b/miext/damage/damagestr.h
index 278615634..0d07872e5 100644
--- a/miext/damage/damagestr.h
+++ b/miext/damage/damagestr.h
@@ -49,7 +49,6 @@ typedef struct _damage {
Bool reportAfter;
RegionRec pendingDamage; /* will be flushed post submission at the latest */
ScreenPtr pScreen;
- PrivateRec *devPrivates;
} DamageRec;
typedef struct _damageScrPriv {