diff options
author | Tor Andersson <tor@ghostscript.com> | 2009-03-11 22:07:53 +0100 |
---|---|---|
committer | Tor Andersson <tor@ghostscript.com> | 2009-03-11 22:07:53 +0100 |
commit | 2e04ad6b587c9a34d18819165152ace7657cf443 (patch) | |
tree | 61fcaf8afa4509a38fd3deab41ad100ad6939cbe /fitz/stm_open.c | |
parent | 9f6a77c2d17128a44bf2fc9fead449a05354def5 (diff) | |
download | mupdf-2e04ad6b587c9a34d18819165152ace7657cf443.tar.xz |
Remove fz_outofmem constant.
Diffstat (limited to 'fitz/stm_open.c')
-rw-r--r-- | fitz/stm_open.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fitz/stm_open.c b/fitz/stm_open.c index c10809a0..c1f73f48 100644 --- a/fitz/stm_open.c +++ b/fitz/stm_open.c @@ -71,7 +71,7 @@ fz_error fz_openrfile(fz_stream **stmp, char *path) stm = newstm(FZ_SFILE); if (!stm) - return fz_throw("outofmem: stream struct"); + return fz_rethrow(-1, "out of memory: stream struct"); error = fz_newbuffer(&stm->buffer, FZ_BUFSIZE); if (error) @@ -99,7 +99,7 @@ fz_error fz_openrfilter(fz_stream **stmp, fz_filter *flt, fz_stream *src) stm = newstm(FZ_SFILTER); if (!stm) - return fz_throw("outofmem: stream struct"); + return fz_rethrow(-1, "out of memory: stream struct"); error = fz_newbuffer(&stm->buffer, FZ_BUFSIZE); if (error) @@ -121,7 +121,7 @@ fz_error fz_openrbuffer(fz_stream **stmp, fz_buffer *buf) stm = newstm(FZ_SBUFFER); if (!stm) - return fz_throw("outofmem: stream struct"); + return fz_rethrow(-1, "out of memory: stream struct"); stm->buffer = fz_keepbuffer(buf); |