From ae9f90cafe2d51df9f39144f348801c1db98317b Mon Sep 17 00:00:00 2001 From: Tony Cook Date: Wed, 4 Jan 2006 00:52:57 +0000 Subject: [PATCH] - don't destroy image before creating it in error handling in bmp.c --- Changes | 1 + bmp.c | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/Changes b/Changes index 80fac2d8..e9dacdee 100644 --- a/Changes +++ b/Changes @@ -1244,6 +1244,7 @@ Revision history for Perl extension Imager. 0.47_01 - set the locale to "C" properly when testing ft1.x error messages +- don't destroy image before creating it in error handling in bmp.c ================================================================= diff --git a/bmp.c b/bmp.c index b4e92e07..8e1e4228 100644 --- a/bmp.c +++ b/bmp.c @@ -1217,7 +1217,6 @@ read_direct_bmp(io_glue *ig, int xsize, int ysize, int bit_count, char buffer; while (base_offset < offbits) { if (ig->readcb(ig, &buffer, 1) != 1) { - i_img_destroy(im); i_push_error(0, "failed skipping to image data offset"); return NULL; } -- 2.30.2