Remove more superfluous if(p) checks around free(p)

Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Signed-off-by: Matt Turner <mattst88@gmail.com>
Signed-off-by: Mikhail Gusarov <dottedmag@dottedmag.net>
This commit is contained in:
Matt Turner
2010-06-10 04:08:54 +07:00
committed by Mikhail Gusarov
parent 89bd05106e
commit f4190feb25
11 changed files with 47 additions and 84 deletions

View File

@@ -127,15 +127,11 @@ exaUnrealizeGlyphCaches(ScreenPtr pScreen,
cache->picture = NULL;
}
if (cache->hashEntries) {
free(cache->hashEntries);
cache->hashEntries = NULL;
}
free(cache->hashEntries);
cache->hashEntries = NULL;
if (cache->glyphs) {
free(cache->glyphs);
cache->glyphs = NULL;
}
free(cache->glyphs);
cache->glyphs = NULL;
cache->glyphCount = 0;
}
}