forked from AuroraMiddleware/gtk
Fixed logic so we only try to close loader if it wasn't previously closed.
1999-10-27 Michael Fulbright <msf@redhat.com> * src/gdk-pixbuf-loader.c (gdk_pixbuf_loader_destroy): Fixed logic so we only try to close loader if it wasn't previously closed.
This commit is contained in:
parent
95e048c863
commit
e8242a24eb
@ -159,7 +159,7 @@ gdk_pixbuf_loader_destroy (GtkObject *loader)
|
||||
priv = GDK_PIXBUF_LOADER (loader)->private;
|
||||
|
||||
/* We want to close it if it's not already closed */
|
||||
if (priv->closed)
|
||||
if (!priv->closed)
|
||||
gdk_pixbuf_loader_close (GDK_PIXBUF_LOADER (loader));
|
||||
|
||||
if (priv->pixbuf)
|
||||
|
@ -159,7 +159,7 @@ gdk_pixbuf_loader_destroy (GtkObject *loader)
|
||||
priv = GDK_PIXBUF_LOADER (loader)->private;
|
||||
|
||||
/* We want to close it if it's not already closed */
|
||||
if (priv->closed)
|
||||
if (!priv->closed)
|
||||
gdk_pixbuf_loader_close (GDK_PIXBUF_LOADER (loader));
|
||||
|
||||
if (priv->pixbuf)
|
||||
|
Loading…
Reference in New Issue
Block a user