diff options
author | Tor Andersson <tor@ghostscript.com> | 2009-03-11 22:02:49 +0100 |
---|---|---|
committer | Tor Andersson <tor@ghostscript.com> | 2009-03-11 22:02:49 +0100 |
commit | 9f6a77c2d17128a44bf2fc9fead449a05354def5 (patch) | |
tree | 905d3c56580a906b77b1ca2660cb6f3fd123b945 /fitz/filt_flate.c | |
parent | 31733cfd3ba1a920542da3792f2591cf7ba5f62a (diff) | |
download | mupdf-9f6a77c2d17128a44bf2fc9fead449a05354def5.tar.xz |
Rename and prune some files and functions.
Diffstat (limited to 'fitz/filt_flate.c')
-rw-r--r-- | fitz/filt_flate.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/fitz/filt_flate.c b/fitz/filt_flate.c index 73105800..65a84711 100644 --- a/fitz/filt_flate.c +++ b/fitz/filt_flate.c @@ -17,6 +17,12 @@ zmalloc(void *opaque, unsigned int items, unsigned int size) return fz_malloc(items * size); } +static void +zfree(void *opaque, void *ptr) +{ + fz_free(ptr); +} + fz_error fz_newflated(fz_filter **fp, fz_obj *params) { @@ -28,8 +34,8 @@ fz_newflated(fz_filter **fp, fz_obj *params) FZ_NEWFILTER(fz_flate, f, flated); f->z.zalloc = zmalloc; - f->z.zfree = (void(*)(void*,void*))fz_currentmemorycontext()->free; - f->z.opaque = fz_currentmemorycontext(); + f->z.zfree = zfree; + f->z.opaque = nil; f->z.next_in = nil; f->z.avail_in = 0; @@ -133,8 +139,8 @@ fz_newflatee(fz_filter **fp, fz_obj *params) } f->z.zalloc = zmalloc; - f->z.zfree = (void(*)(void*,void*))fz_currentmemorycontext()->free; - f->z.opaque = fz_currentmemorycontext(); + f->z.zfree = zfree; + f->z.opaque = nil; f->z.next_in = nil; f->z.avail_in = 0; |