tags 383823 +patch thanks This seems to be fixed in version 2.2.1 upstream. I've attached a patch that patches the affected file up to the version in 2.2.1. It works for me.
Thanks, John Wright
=== added file 'debian/patches/gap_thumbnail-free.diff' --- debian/patches/gap_thumbnail-free.diff 1970-01-01 00:00:00 +0000 +++ debian/patches/gap_thumbnail-free.diff 2006-08-24 02:05:50 +0000 @@ -0,0 +1,46 @@ +--- gimp-gap-2.2.0/gap/gap_thumbnail.c 2004-04-30 12:08:22.000000000 -0600 ++++ gimp-gap-2.2.1/gap/gap_thumbnail.c 2006-05-31 03:58:29.000000000 -0600 +@@ -42,7 +42,6 @@ + #include "config.h" + + /* SYSTEM (UNIX) includes */ +-#include <stdio.h> + #include <stdlib.h> + #include <time.h> + #include <string.h> +@@ -53,6 +52,8 @@ + #include <sys/stat.h> + #include <errno.h> + ++#include <glib/gstdio.h> ++ + #ifdef G_OS_WIN32 + #include <io.h> + # ifndef S_ISDIR +@@ -295,7 +296,7 @@ + ); + g_object_unref(pixbuf); + } +- g_free(thumbnail); ++ g_object_unref(thumbnail); + } + g_free(dst_png_thumb_full); + } +@@ -450,7 +451,7 @@ + if(gap_lib_file_exists(png_thumb_full) == 1) + { + if (gap_debug) printf ("gap_thumb_file_delete_thumbnail: png_thumb_full: %s\n", png_thumb_full); +- remove(png_thumb_full); ++ g_remove(png_thumb_full); + } + g_free(png_thumb_full); + } +@@ -600,7 +601,7 @@ + *th_bpp = nchannels; + + } +- g_free(thumbnail); ++ g_object_unref(thumbnail); + } + + return (pixbuf);