Close every PixbufLoader
This commit is contained in:
1 parent
1c50bd7322
commit
2ea944fae3
1 file changed
+2
-2
@@ -211,14 +211,14 @@ class Image(WidgetInterface):
|
||||
except glib.GError:
|
||||
continue
|
||||
pixbuf = loader.get_pixbuf()
|
||||
loader.close()
|
||||
if pixbuf:
|
||||
break
|
||||
if not pixbuf:
|
||||
loader = gtk.gdk.PixbufLoader('png')
|
||||
loader.write(NOIMAGE, len(NOIMAGE))
|
||||
pixbuf = loader.get_pixbuf()
|
||||
|
||||
loader.close()
|
||||
loader.close()
|
||||
|
||||
img_height = pixbuf.get_height()
|
||||
if img_height > self.height:
|
||||
|
||||
Reference in new issue
Block a user