diff options
author | Robin Watts <robin.watts@artifex.com> | 2016-03-15 17:41:12 +0000 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2016-03-15 17:43:23 +0000 |
commit | bc310b35a8dcba3ef22dd80d15e032f7e94795ef (patch) | |
tree | 6637f40d4392bf8ccc415a3234bbaad224bdb868 /source | |
parent | 7fbf0537b1b8dc3cd678d9f88c79200126071b77 (diff) | |
download | mupdf-bc310b35a8dcba3ef22dd80d15e032f7e94795ef.tar.xz |
Memento: Track fz_streams.
Diffstat (limited to 'source')
-rw-r--r-- | source/fitz/stream-open.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/fitz/stream-open.c b/source/fitz/stream-open.c index e9836dd1..1b3ce97d 100644 --- a/source/fitz/stream-open.c +++ b/source/fitz/stream-open.c @@ -46,7 +46,7 @@ fz_new_stream(fz_context *ctx, void *state, fz_stream_next_fn *next, fz_stream_c fz_stream * fz_keep_stream(fz_context *ctx, fz_stream *stm) { - if (stm) + if (Memento_takeRef(stm)) stm->refs ++; return stm; } @@ -54,7 +54,7 @@ fz_keep_stream(fz_context *ctx, fz_stream *stm) void fz_drop_stream(fz_context *ctx, fz_stream *stm) { - if (!stm) + if (!Memento_dropRef(stm)) return; stm->refs --; if (stm->refs == 0) |