diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2012-02-03 15:48:33 +0100 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2012-02-03 15:48:33 +0100 |
commit | 139d80bd65a164accf9d36d244d3d6a4c555aa47 (patch) | |
tree | 0390d124a0d6ed2b04317e8a35447169b6f2c62a /fitz/stm_buffer.c | |
parent | 1eb721680865658ed8ff04e13c81eb6a32b2b44c (diff) | |
download | mupdf-139d80bd65a164accf9d36d244d3d6a4c555aa47.tar.xz |
Be consistent about passing a fz_context argument in pixmap functions.
Diffstat (limited to 'fitz/stm_buffer.c')
-rw-r--r-- | fitz/stm_buffer.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/fitz/stm_buffer.c b/fitz/stm_buffer.c index f01e5b19..7f9d521d 100644 --- a/fitz/stm_buffer.c +++ b/fitz/stm_buffer.c @@ -25,9 +25,10 @@ fz_new_buffer(fz_context *ctx, int size) } fz_buffer * -fz_keep_buffer(fz_buffer *buf) +fz_keep_buffer(fz_context *ctx, fz_buffer *buf) { - buf->refs ++; + if (buf) + buf->refs ++; return buf; } |