Bad file_info unref location in create_preview_pixbuf - not a valid object in error case
@mraudsepp
Submitted by Mart Raudsepp Link to original bug (#523755)
Description
I don't have image preview for custom background choosing working for some reason in gnome-terminal-2.22.0 (using GIO), as g_file_query_info(file1, G_FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE) on the image is returning NULL with an error of G_IO_ERROR "Operation not supported". I'm still investigating that, but this also exposes a problem in the reference handling in that function - if file_info is NULL g_object_unref is still called on it which causes a critical warning. I believe the unref could be located in the if (file_info != NULL) block instead, after retrieving the mime type from it.
Resolution: RESOLVED FIXED