Fri Apr 7 13:46:45 2006 Søren Sandmann <sandmann@redhat.com>

Use FreeResource instead of deleteCompOverlayClient()
This commit is contained in:
Søren Sandmann Pedersen 2006-04-07 17:49:32 +00:00
commit dc43909219
2 changed files with 7 additions and 1 deletions

View file

@ -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) {