summaryrefslogtreecommitdiff
path: root/dix/selection.c
diff options
context:
space:
mode:
Diffstat (limited to 'dix/selection.c')
-rw-r--r--dix/selection.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/dix/selection.c b/dix/selection.c
index f52638c3a..bae3a3092 100644
--- a/dix/selection.c
+++ b/dix/selection.c
@@ -94,8 +94,7 @@ InitSelections(void)
pSel = CurrentSelections;
while (pSel) {
pNextSel = pSel->next;
- dixFreePrivates(pSel->devPrivates);
- free(pSel);
+ dixFreeObjectWithPrivates(pSel, PRIVATE_SELECTION);
pSel = pNextSel;
}