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:
Michael Fulbright 1999-10-27 17:08:21 +00:00 committed by Michael Fulbright
parent 95e048c863
commit e8242a24eb
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -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)