Thu, 20 Mar 2003 08:20:52 +0000
fix return values in process_tiff_image().
Makefile | file | annotate | diff | revisions | |
tumble_tiff.c | file | annotate | diff | revisions |
1.1 --- a/Makefile Thu Mar 20 07:53:09 2003 +0000 1.2 +++ b/Makefile Thu Mar 20 08:20:52 2003 +0000 1.3 @@ -1,6 +1,6 @@ 1.4 # tumble: build a PDF file from image files 1.5 # Makefile 1.6 -# $Id: Makefile,v 1.37 2003/03/19 23:52:25 eric Exp $ 1.7 +# $Id: Makefile,v 1.38 2003/03/20 00:20:52 eric Exp $ 1.8 # Copyright 2001, 2002, 2003 Eric Smith <eric@brouhaha.com> 1.9 # 1.10 # This program is free software; you can redistribute it and/or modify 1.11 @@ -57,7 +57,7 @@ 1.12 # let me know why so I can improve this Makefile. 1.13 # ----------------------------------------------------------------------------- 1.14 1.15 -VERSION = 0.30 1.16 +VERSION = 0.31 1.17 1.18 PACKAGE = tumble 1.19
2.1 --- a/tumble_tiff.c Thu Mar 20 07:53:09 2003 +0000 2.2 +++ b/tumble_tiff.c Thu Mar 20 08:20:52 2003 +0000 2.3 @@ -1,7 +1,7 @@ 2.4 /* 2.5 * tumble: build a PDF file from image files 2.6 * 2.7 - * $Id: tumble_tiff.c,v 1.2 2003/03/19 23:02:28 eric Exp $ 2.8 + * $Id: tumble_tiff.c,v 1.3 2003/03/20 00:20:52 eric Exp $ 2.9 * Copyright 2001, 2002, 2003 Eric Smith <eric@brouhaha.com> 2.10 * 2.11 * This program is free software; you can redistribute it and/or modify 2.12 @@ -255,6 +255,7 @@ 2.13 image_info_t *image_info, 2.14 pdf_page_handle page) 2.15 { 2.16 + bool result = 0; 2.17 Rect rect; 2.18 Bitmap *bitmap = NULL; 2.19 2.20 @@ -321,15 +322,12 @@ 2.21 0); /* BlackIs1 */ 2.22 #endif 2.23 2.24 - if (bitmap) 2.25 - free_bitmap (bitmap); 2.26 - return (page); 2.27 + result = 1; 2.28 2.29 fail: 2.30 if (bitmap) 2.31 free_bitmap (bitmap); 2.32 - 2.33 - return (NULL); 2.34 + return (result); 2.35 } 2.36 2.37