- don't destroy image before creating it in error handling in bmp.c
authorTony Cook <tony@develop=help.com>
Wed, 4 Jan 2006 00:52:57 +0000 (00:52 +0000)
committerTony Cook <tony@develop=help.com>
Wed, 4 Jan 2006 00:52:57 +0000 (00:52 +0000)
Changes
bmp.c

diff --git a/Changes b/Changes
index 80fac2d..e9dacde 100644 (file)
--- 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 b4e92e0..8e1e422 100644 (file)
--- 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;
       }