diff --git a/gdk-pixbuf/ChangeLog b/gdk-pixbuf/ChangeLog index 7faf7f1950..9f91418a8e 100644 --- a/gdk-pixbuf/ChangeLog +++ b/gdk-pixbuf/ChangeLog @@ -1,3 +1,8 @@ +2000-03-08 Jonathan Blandford + + * gdk-pixbuf/io-gif.c (gdk_pixbuf__gif_image_load): free the context. + (gdk_pixbuf__gif_image_load_animation): free the context. + 2000-03-06 Arjan van de Ven * gdk-pixbuf/io-bmp.c: Fixed to pointer-bugs and a diff --git a/gdk-pixbuf/io-gif.c b/gdk-pixbuf/io-gif.c index 71c6288cb9..c4397c497d 100644 --- a/gdk-pixbuf/io-gif.c +++ b/gdk-pixbuf/io-gif.c @@ -1087,6 +1087,7 @@ GdkPixbuf * gdk_pixbuf__gif_image_load (FILE *file) { GifContext *context; + GdkPixbuf *pixbuf; g_return_val_if_fail (file != NULL, NULL); @@ -1095,7 +1096,10 @@ gdk_pixbuf__gif_image_load (FILE *file) gif_main_loop (context); - return context->pixbuf; + pixbuf = context->pixbuf; + g_free (context); + + return pixbuf; } gpointer @@ -1197,6 +1201,7 @@ GdkPixbufAnimation * gdk_pixbuf__gif_image_load_animation (FILE *file) { GifContext *context; + GdkPixbufAnimation *animation; g_return_val_if_fail (file != NULL, NULL); @@ -1208,6 +1213,8 @@ gdk_pixbuf__gif_image_load_animation (FILE *file) context->file = file; gif_main_loop (context); - - return context->animation; + + animation = context->animation; + g_free (context); + return animation; }