Commit 407a3791 authored by Jonathan Blandford's avatar Jonathan Blandford Committed by Jonathan Blandford
Browse files

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.
parent ec1e8f1f
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.
2000-03-06 Arjan van de Ven <arjan@fenrus.demon.nl>
* gdk-pixbuf/io-bmp.c: Fixed to pointer-bugs and a
......
......@@ -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;
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment