1
0
mirror of synced 2026-03-10 20:54:21 +00:00

fix return values in process_tiff_image().

This commit is contained in:
Eric Smith
2003-03-20 08:20:52 +00:00
parent dccd163653
commit e2298fcbe8
2 changed files with 6 additions and 8 deletions

View File

@@ -1,6 +1,6 @@
# tumble: build a PDF file from image files
# Makefile
# $Id: Makefile,v 1.37 2003/03/19 23:52:25 eric Exp $
# $Id: Makefile,v 1.38 2003/03/20 00:20:52 eric Exp $
# Copyright 2001, 2002, 2003 Eric Smith <eric@brouhaha.com>
#
# This program is free software; you can redistribute it and/or modify
@@ -57,7 +57,7 @@ YFLAGS = -d -v
# let me know why so I can improve this Makefile.
# -----------------------------------------------------------------------------
VERSION = 0.30
VERSION = 0.31
PACKAGE = tumble

View File

@@ -1,7 +1,7 @@
/*
* tumble: build a PDF file from image files
*
* $Id: tumble_tiff.c,v 1.2 2003/03/19 23:02:28 eric Exp $
* $Id: tumble_tiff.c,v 1.3 2003/03/20 00:20:52 eric Exp $
* Copyright 2001, 2002, 2003 Eric Smith <eric@brouhaha.com>
*
* This program is free software; you can redistribute it and/or modify
@@ -255,6 +255,7 @@ bool process_tiff_image (int image, /* range 1 .. n */
image_info_t *image_info,
pdf_page_handle page)
{
bool result = 0;
Rect rect;
Bitmap *bitmap = NULL;
@@ -321,15 +322,12 @@ bool process_tiff_image (int image, /* range 1 .. n */
0); /* BlackIs1 */
#endif
if (bitmap)
free_bitmap (bitmap);
return (page);
result = 1;
fail:
if (bitmap)
free_bitmap (bitmap);
return (NULL);
return (result);
}