- IntEmptyClipboardData: Check before freeing a potential null pointer

svn path=/trunk/; revision=41143
This commit is contained in:
Stefan Ginsberg 2009-05-27 16:39:24 +00:00
parent acf1233799
commit e6b91f9ede

View file

@ -229,7 +229,10 @@ IntEmptyClipboardData()
while(ce)
{
tmp = ce->next;
if (ce->hData)
{
ExFreePool(ce->hData);
}
ExFreePool(ce);
ce = tmp;
}