gdbusserver: Fix a potential g_object_unref(NULL) call
authorPhilip Withnall <philip.withnall@collabora.co.uk>
Tue, 26 Nov 2013 11:08:50 +0000 (11:08 +0000)
committerPhilip Withnall <philip.withnall@collabora.co.uk>
Wed, 27 Nov 2013 10:01:29 +0000 (10:01 +0000)
commitc729f416fb07e723a8404e28241a8096ac438838
tree81bee304c0171f316cdafecd890906fa41772ce2
parent44af12aba114c82e04fa78eb2ad9aaf8aa5137b2
gdbusserver: Fix a potential g_object_unref(NULL) call

This can happen if the hash table lookup for ‘noncefile’ fails, and
hence the first ‘goto out’ is hit, at which point resolver is still
NULL.

Found with scan-build.

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