diff --git a/gdk-pixbuf/gdk-pixbuf-loader.c b/gdk-pixbuf/gdk-pixbuf-loader.c index efc132d265..ef6c076094 100644 --- a/gdk-pixbuf/gdk-pixbuf-loader.c +++ b/gdk-pixbuf/gdk-pixbuf-loader.c @@ -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) diff --git a/gtk/gdk-pixbuf-loader.c b/gtk/gdk-pixbuf-loader.c index efc132d265..ef6c076094 100644 --- a/gtk/gdk-pixbuf-loader.c +++ b/gtk/gdk-pixbuf-loader.c @@ -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)