diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2014-05-26 16:15:00 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2014-05-26 16:15:00 -0700 |
commit | ab92831be0e862622105f015fe8c390715d2aae9 (patch) | |
tree | a8907704c9924753c5f0948d4a54e04c700a54be | |
parent | 4ae1b3d5f5330a8f7bd8880860a204000081095c (diff) |
Replace sole call to uFree() with direct call to free()
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r-- | psgeom.c | 2 | ||||
-rw-r--r-- | utils.c | 10 | ||||
-rw-r--r-- | utils.h | 1 |
3 files changed, 1 insertions, 12 deletions
@@ -396,7 +396,7 @@ static void ClearFontStuff(FontStuff *stuff) { if (stuff && stuff->foundry) - uFree(stuff->foundry); + free(stuff->foundry); bzero(stuff, sizeof(FontStuff)); return; } @@ -50,16 +50,6 @@ uCalloc(unsigned n, unsigned size) return ((Opaque) calloc(n, size)); } -/***====================================================================***/ - -void -uFree(Opaque ptr) -{ - if (ptr != (Opaque) NULL) - free((char *) ptr); - return; -} - /***====================================================================***/ @@ -79,7 +79,6 @@ typedef int Comparison; extern Opaque uAlloc(unsigned /* size */); extern Opaque uCalloc(unsigned /* n */ , unsigned /* size */); -extern void uFree(Opaque /* ptr */); #define uTypedAlloc(t) ((t *)uAlloc((unsigned)sizeof(t))) #define uTypedCalloc(n,t) ((t *)uCalloc((unsigned)n,(unsigned)sizeof(t))) |