diff options
author | Jonathan Blandford <jrb@redhat.com> | 2000-03-09 00:11:30 +0000 |
---|---|---|
committer | Jonathan Blandford <jrb@src.gnome.org> | 2000-03-09 00:11:30 +0000 |
commit | 407a3791892187dd7eefb66bead7fa30e2d1f0a7 (patch) | |
tree | da74f4b0f9bd6f6c535c52ee1c78b600ca2a5d35 /gdk-pixbuf/io-gif.c | |
parent | ec1e8f1f5d81223738e4cc3f7fddd1f84df65d7e (diff) | |
download | gtk+-407a3791892187dd7eefb66bead7fa30e2d1f0a7.tar.gz |
free the context. (gdk_pixbuf__gif_image_load_animation): free the
2000-03-08 Jonathan Blandford <jrb@redhat.com>
* gdk-pixbuf/io-gif.c (gdk_pixbuf__gif_image_load): free the context.
(gdk_pixbuf__gif_image_load_animation): free the context.
Diffstat (limited to 'gdk-pixbuf/io-gif.c')
-rw-r--r-- | gdk-pixbuf/io-gif.c | 13 |
1 files changed, 10 insertions, 3 deletions
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; } |