Skip to content
Snippets Groups Projects
Commit bcbcc98b authored by jimpp's avatar jimpp
Browse files

Close the pixbufloader in all cases. Fixes gtk warnings in console.

parent 5f797834
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment