From bcbcc98b066818e212b043a98a77e498909f925d Mon Sep 17 00:00:00 2001 From: Jean-Marie Traissard Date: Sun, 21 Jan 2007 20:16:29 +0000 Subject: [PATCH] Close the pixbufloader in all cases. Fixes gtk warnings in console. --- src/gtkgui_helpers.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gtkgui_helpers.py b/src/gtkgui_helpers.py index fb3766170..994c70c41 100644 --- a/src/gtkgui_helpers.py +++ b/src/gtkgui_helpers.py @@ -396,6 +396,7 @@ def get_pixbuf_from_data(file_data, want_type = False): pixbufloader.close() pixbuf = pixbufloader.get_pixbuf() except gobject.GError: # 'unknown image format' + pixbufloader.close() pixbuf = None if want_type: return None, None