* this function might be called with a NULL FontCacheEntry, handle that

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21889 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stephan Aßmus
2007-08-11 13:16:07 +00:00
parent 82afdb09c8
commit e4273662d2
+2
View File
@@ -103,6 +103,8 @@ void
FontCache::Recycle(FontCacheEntry* entry) FontCache::Recycle(FontCacheEntry* entry)
{ {
//printf("Recycle(%p)\n", entry); //printf("Recycle(%p)\n", entry);
if (!entry)
return;
entry->UpdateUsage(); entry->UpdateUsage();
entry->RemoveReference(); entry->RemoveReference();
} }