diff options
Diffstat (limited to 'Xext/xvmc.c')
-rw-r--r-- | Xext/xvmc.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/Xext/xvmc.c b/Xext/xvmc.c index 982fad13f..8fbdfaedd 100644 --- a/Xext/xvmc.c +++ b/Xext/xvmc.c @@ -259,8 +259,7 @@ ProcXvMCCreateContext(ClientPtr client) WriteToClient(client, dwords << 2, (char*)data); AddResource(pContext->context_id, XvMCRTContext, pContext); - if(data) - free(data); + free(data); return Success; } @@ -327,8 +326,7 @@ ProcXvMCCreateSurface(ClientPtr client) WriteToClient(client, dwords << 2, (char*)data); AddResource(pSurface->surface_id, XvMCRTSurface, pSurface); - if(data) - free(data); + free(data); pContext->refcnt++; @@ -444,8 +442,7 @@ ProcXvMCCreateSubpicture(ClientPtr client) WriteToClient(client, dwords << 2, (char*)data); AddResource(pSubpicture->subpicture_id, XvMCRTSubpicture, pSubpicture); - if(data) - free(data); + free(data); pContext->refcnt++; |