vnd: Fix a silly memory leak
'disp' was already allocated by LookupVendorPrivDispatch above, clobbering it will do no good. Signed-off-by: Adam Jackson <ajax@redhat.com>
This commit is contained in:
parent
bf991a5f98
commit
709c656297
|
@ -386,10 +386,6 @@ static int dispatch_GLXVendorPriv(ClientPtr client)
|
||||||
// Note that even if none of the vendors provides a dispatch stub,
|
// Note that even if none of the vendors provides a dispatch stub,
|
||||||
// we'll still add an entry to the dispatch table, so that we don't
|
// we'll still add an entry to the dispatch table, so that we don't
|
||||||
// have to look it up again later.
|
// have to look it up again later.
|
||||||
disp = (GlxVendorPrivDispatch *) malloc(sizeof(GlxVendorPrivDispatch));
|
|
||||||
if (disp == NULL) {
|
|
||||||
return BadAlloc;
|
|
||||||
}
|
|
||||||
|
|
||||||
disp->proc = GetVendorDispatchFunc(stuff->glxCode,
|
disp->proc = GetVendorDispatchFunc(stuff->glxCode,
|
||||||
GlxCheckSwap(client,
|
GlxCheckSwap(client,
|
||||||
|
|
Loading…
Reference in New Issue