From 139d80bd65a164accf9d36d244d3d6a4c555aa47 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Fri, 3 Feb 2012 15:48:33 +0100 Subject: Be consistent about passing a fz_context argument in pixmap functions. --- fitz/stm_buffer.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'fitz/stm_buffer.c') 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; } -- cgit v1.2.3