Avoid calling bitmap_modified with NULL.

This commit is contained in:
John-Mark Bell 2013-01-13 17:12:45 +00:00
parent 716b50062b
commit 8e66adaade

View File

@ -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;
}