From e4273662d2c8da9d0911c836c835428274d5f1ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20A=C3=9Fmus?= Date: Sat, 11 Aug 2007 13:16:07 +0000 Subject: [PATCH] * 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 --- src/servers/app/FontCache.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/servers/app/FontCache.cpp b/src/servers/app/FontCache.cpp index e810a9313c..2ca56a2ff1 100644 --- a/src/servers/app/FontCache.cpp +++ b/src/servers/app/FontCache.cpp @@ -103,6 +103,8 @@ void FontCache::Recycle(FontCacheEntry* entry) { //printf("Recycle(%p)\n", entry); + if (!entry) + return; entry->UpdateUsage(); entry->RemoveReference(); }