summaryrefslogtreecommitdiff
path: root/gdk-pixbuf/gdk-pixbuf-animation.c
diff options
context:
space:
mode:
authorMatthias Clasen <matthiasc@src.gnome.org>2002-08-22 21:32:06 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2002-08-22 21:32:06 +0000
commitc22b614565cd30079a0eaf7534f1a3f4f2819c6b (patch)
tree9bae80a46e8e7c28ce1e3af706e5250550f8260c /gdk-pixbuf/gdk-pixbuf-animation.c
parente6194432880d1b69d10f18edee7e89b47af1630e (diff)
downloadgdk-pixbuf-c22b614565cd30079a0eaf7534f1a3f4f2819c6b.tar.gz
gdk-pixbuf-io.c (_gdk_pixbuf_generic_image_load): No longer static, thus
* gdk-pixbuf-io.h: gdk-pixbuf-io.c (_gdk_pixbuf_generic_image_load): No longer static, thus _gdk_pixbuf-prefixed. * gdk-pixbuf-animation.c (gdk_pixbuf_animation_new_from_file): Keep this logic in sync with gdk_pixbuf_new_from_file(). (Based on a patch by Anders Carlsson) * io-png.c (gdk_pixbuf__png_image_save): Plug a memory leak. (#91422, Sven Neumann)
Diffstat (limited to 'gdk-pixbuf/gdk-pixbuf-animation.c')
-rw-r--r--gdk-pixbuf/gdk-pixbuf-animation.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/gdk-pixbuf/gdk-pixbuf-animation.c b/gdk-pixbuf/gdk-pixbuf-animation.c
index 0d7df8579..4185eba91 100644
--- a/gdk-pixbuf/gdk-pixbuf-animation.c
+++ b/gdk-pixbuf/gdk-pixbuf-animation.c
@@ -176,18 +176,8 @@ gdk_pixbuf_animation_new_from_file (const char *filename,
/* Keep this logic in sync with gdk_pixbuf_new_from_file() */
- if (image_module->load == NULL) {
- g_set_error (error,
- GDK_PIXBUF_ERROR,
- GDK_PIXBUF_ERROR_UNSUPPORTED_OPERATION,
- _("Don't know how to load the animation in file '%s'"),
- filename);
- fclose (f);
- return NULL;
- }
-
fseek (f, 0, SEEK_SET);
- pixbuf = (* image_module->load) (f, error);
+ pixbuf = _gdk_pixbuf_generic_image_load (image_module, f, error);
fclose (f);
if (pixbuf == NULL && error != NULL && *error == NULL) {