gcontenttype: Fix a potential g_object_unref(NULL) call
authorPhilip Withnall <philip.withnall@collabora.co.uk>
Tue, 26 Nov 2013 11:07:45 +0000 (11:07 +0000)
committerPhilip Withnall <philip.withnall@collabora.co.uk>
Wed, 27 Nov 2013 10:01:29 +0000 (10:01 +0000)
commit44af12aba114c82e04fa78eb2ad9aaf8aa5137b2
tree0d15cefe67180a301d8064f96bcc9bcc62629c7c
parentb9322bf9abe2e61718b2b1c57aa09b18946a2d35
gcontenttype: Fix a potential g_object_unref(NULL) call

This can happen if the g_file_query_info() call fails, returning NULL.

Found with scan-build.

https://bugzilla.gnome.org/show_bug.cgi?id=113075
gio/gcontenttype.c