summaryrefslogtreecommitdiff
path: root/composite/compext.c
diff options
context:
space:
mode:
Diffstat (limited to 'composite/compext.c')
-rw-r--r--composite/compext.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/composite/compext.c b/composite/compext.c
index cc9b665f7..a7ad4e2fd 100644
--- a/composite/compext.c
+++ b/composite/compext.c
@@ -501,7 +501,8 @@ ProcCompositeReleaseOverlayWindow (ClientPtr client)
return BadMatch;
}
- deleteCompOverlayClient(pOc, pOc->pScreen);
+ /* The delete function will free the client structure */
+ FreeResource (pOc->resource, 0);
cs = GetCompScreen(pScreen);
if (cs->pOverlayClients == NULL) {