GDBusProxy: on_properties_changed initialize some variables
authorMatthias Clasen <mclasen@redhat.com>
Sat, 13 Aug 2011 20:09:41 +0000 (16:09 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 13 Aug 2011 20:09:41 +0000 (16:09 -0400)
commitae496a52a92c137b624eee3f5cf54e7756143086
treef5ab1e1ceef89a26ce106ff49eee3fac445cf746
parent655299a0579b8c9b418eab2301201c1fd25d89ae
GDBusProxy: on_properties_changed initialize some variables

This avoids calling g_variant_unref and g_free on uninitialized memory
if PropertiesChanged is received in the creating thread's thread-default
main context's thread, at the same time as releasing the last ref in
another thread. This would result in "goto out" before the variables
freed after that label had been initialized to NULL.

Based on a patch by Simon McVittie, bug 656282
gio/gdbusproxy.c