about summary refs log tree commit diff
path: root/editor
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2006-10-18 18:29:13 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2006-10-18 18:29:13 +0000
commit2fc96d4928baccbdf7d52eca57b967f4c5355d8e (patch)
treeee9076375b75ec179576a3a39c4b0bda56771048 /editor
parentb31e75a79a6f096f3462292fd48494035f0be0fe (diff)
downloadnetpbm-mirror-2fc96d4928baccbdf7d52eca57b967f4c5355d8e.tar.gz
netpbm-mirror-2fc96d4928baccbdf7d52eca57b967f4c5355d8e.tar.xz
netpbm-mirror-2fc96d4928baccbdf7d52eca57b967f4c5355d8e.zip
Release 10.35.08
git-svn-id: http://svn.code.sf.net/p/netpbm/code/stable@90 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'editor')
-rw-r--r--editor/pamperspective.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/editor/pamperspective.c b/editor/pamperspective.c
index fdf446c7..7bcc74fb 100644
--- a/editor/pamperspective.c
+++ b/editor/pamperspective.c
@@ -1143,6 +1143,17 @@ static void free_buffer (buffer *const b)
 {
   int i;
 
+  /* We have to read through the end of the input image even if we
+     didn't use all the rows, because if the input is a pipe, the
+     guy writing into the pipe may require all the data to go
+     through.
+  */
+  
+  while (b->last_logical < b->inpam->height-1) {
+      pnm_readpamrow(b->inpam, b->rows[0]);
+      ++b->last_logical;
+  }
+
   for (i=0; i<b->num_rows; i++)
     pnm_freepamrow (b->rows[i]);
   free (b->rows);