From 8e66adaade55a6ca82a6e8a97e52312adafe38ce Mon Sep 17 00:00:00 2001 From: John-Mark Bell Date: Sun, 13 Jan 2013 17:12:45 +0000 Subject: Avoid calling bitmap_modified with NULL. --- image/png.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'image') diff --git a/image/png.c b/image/png.c index 23c755825..2a8334693 100644 --- a/image/png.c +++ b/image/png.c @@ -502,7 +502,8 @@ png_cache_convert_error: free((png_bytep *) row_pointers); - bitmap_modified((struct bitmap *)bitmap); + if (bitmap != NULL) + bitmap_modified((struct bitmap *)bitmap); return (struct bitmap *)bitmap; } -- cgit v1.2.3