forked from AuroraMiddleware/gtk
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.
This commit is contained in:
parent
ec1e8f1f5d
commit
407a379189
@ -1,3 +1,8 @@
|
||||
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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user