Avoid possible nil pointer dereference if a poll is created with nil clients.

This commit is contained in:
Richard Frith-Macdonald 2022-10-19 19:17:41 +01:00
parent 346f114fc6
commit 465bcaa70d

View file

@ -885,7 +885,10 @@ static Class cls = Nil;
* caused by deallocation.
*/
_items[index].u = 0;
NSIncrementExtraRefCount(client);
if (client)
{
NSIncrementExtraRefCount(client);
}
}
else
{