summaryrefslogtreecommitdiff
path: root/exa
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gmail.com>2010-06-10 04:08:54 +0700
committerMikhail Gusarov <dottedmag@dottedmag.net>2010-06-11 19:05:46 +0700
commitf4190feb25ecc3d8278decc8bf28a5ef0e568942 (patch)
tree1bda33d8d65126f4a7d2a53f6efdb69e4a426e1d /exa
parent89bd05106e5823fc5cfca9abf082729f2444363b (diff)
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>
Diffstat (limited to 'exa')
-rw-r--r--exa/exa_glyphs.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/exa/exa_glyphs.c b/exa/exa_glyphs.c
index b09db46b0..5c46ec901 100644
--- a/exa/exa_glyphs.c
+++ b/exa/exa_glyphs.c
@@ -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;
}
}