Xext: add missing return code check to ProcSyncDestroyAlarm
Introduced with 57aff88c7d.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
@@ -1770,6 +1770,7 @@ ProcSyncDestroyAlarm(ClientPtr client)
|
|||||||
|
|
||||||
rc = dixLookupResourceByType((pointer *)&pAlarm, stuff->alarm, RTAlarm,
|
rc = dixLookupResourceByType((pointer *)&pAlarm, stuff->alarm, RTAlarm,
|
||||||
client, DixDestroyAccess);
|
client, DixDestroyAccess);
|
||||||
|
if (rc != Success)
|
||||||
return (rc == BadValue) ? SyncErrorBase + XSyncBadAlarm : rc;
|
return (rc == BadValue) ? SyncErrorBase + XSyncBadAlarm : rc;
|
||||||
|
|
||||||
FreeResource(stuff->alarm, RT_NONE);
|
FreeResource(stuff->alarm, RT_NONE);
|
||||||
|
|||||||
Reference in New Issue
Block a user