summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--psgeom.c2
-rw-r--r--utils.c10
-rw-r--r--utils.h1
3 files changed, 1 insertions, 12 deletions
diff --git a/psgeom.c b/psgeom.c
index 44f7994..0365cee 100644
--- a/psgeom.c
+++ b/psgeom.c
@@ -396,7 +396,7 @@ static void
ClearFontStuff(FontStuff *stuff)
{
if (stuff && stuff->foundry)
- uFree(stuff->foundry);
+ free(stuff->foundry);
bzero(stuff, sizeof(FontStuff));
return;
}
diff --git a/utils.c b/utils.c
index 70887c7..240ac1b 100644
--- a/utils.c
+++ b/utils.c
@@ -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;
-}
-
/***====================================================================***/
diff --git a/utils.h b/utils.h
index 436809e..c277d33 100644
--- a/utils.h
+++ b/utils.h
@@ -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)))