summaryrefslogtreecommitdiff
path: root/object/simple.c
diff options
context:
space:
mode:
authorTor Andersson <tor@ghostscript.com>2004-11-01 03:25:13 +0100
committerTor Andersson <tor@ghostscript.com>2004-11-01 03:25:13 +0100
commit691028a1c0528158e8a8ec04631b26b46caa3804 (patch)
treea9fd4eabd25976fbce711e12da9496b41cdd5f06 /object/simple.c
parent082f865c4e16e525076a86df5da2a1b03da293bb (diff)
downloadmupdf-691028a1c0528158e8a8ec04631b26b46caa3804.tar.xz
great free -> drop renaming
Diffstat (limited to 'object/simple.c')
-rw-r--r--object/simple.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/object/simple.c b/object/simple.c
index bee7cf46..953dcfa7 100644
--- a/object/simple.c
+++ b/object/simple.c
@@ -1,5 +1,8 @@
#include <fitz.h>
+extern void fz_droparray(fz_obj *array);
+extern void fz_dropdict(fz_obj *dict);
+
#define NEWOBJ(KIND,SIZE) \
fz_obj *o; \
o = *op = fz_malloc(SIZE); \
@@ -85,9 +88,9 @@ fz_dropobj(fz_obj *o)
o->refcount --;
if (o->refcount == 0) {
if (o->kind == FZ_ARRAY)
- fz_freearray(o);
+ fz_droparray(o);
else if (o->kind == FZ_DICT)
- fz_freedict(o);
+ fz_dropdict(o);
else
fz_free(o);
}