forked from AuroraMiddleware/gtk
gdk-pixbuf-animation.c (gdk_pixbuf_animation_new_from_file) Avoid
2004-12-27 Matthias Clasen <mclasen@redhat.com> * gdk-pixbuf-animation.c (gdk_pixbuf_animation_new_from_file) Avoid deadlock. Pointed out by Callum McKenzie.
This commit is contained in:
parent
661ec3189c
commit
c0e9374d9c
@ -1,3 +1,8 @@
|
||||
2004-12-27 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gdk-pixbuf-animation.c (gdk_pixbuf_animation_new_from_file)
|
||||
Avoid deadlock. Pointed out by Callum McKenzie.
|
||||
|
||||
Wed Dec 22 01:17:44 2004 Jonathan Blandford <jrb@redhat.com>
|
||||
|
||||
* queryloaders.c (main): print out the version and binary name in
|
||||
|
@ -139,7 +139,7 @@ gdk_pixbuf_animation_new_from_file (const char *filename,
|
||||
guchar buffer [128];
|
||||
GdkPixbufModule *image_module;
|
||||
gchar *display_name;
|
||||
gboolean locked;
|
||||
gboolean locked = FALSE;
|
||||
|
||||
g_return_val_if_fail (filename != NULL, NULL);
|
||||
g_return_val_if_fail (error == NULL || *error == NULL, NULL);
|
||||
@ -184,8 +184,6 @@ gdk_pixbuf_animation_new_from_file (const char *filename,
|
||||
return NULL;
|
||||
}
|
||||
|
||||
locked = _gdk_pixbuf_lock (image_module);
|
||||
|
||||
if (image_module->load_animation == NULL) {
|
||||
GdkPixbuf *pixbuf;
|
||||
|
||||
@ -221,6 +219,8 @@ gdk_pixbuf_animation_new_from_file (const char *filename,
|
||||
|
||||
g_object_unref (pixbuf);
|
||||
} else {
|
||||
locked = _gdk_pixbuf_lock (image_module);
|
||||
|
||||
fseek (f, 0, SEEK_SET);
|
||||
animation = (* image_module->load_animation) (f, error);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user