SidebarRow: Unref CloudProvider on change/finalize
authorDaniel Boles <dboles@src.gnome.org>
Tue, 12 Sep 2017 20:56:46 +0000 (21:56 +0100)
committerDaniel Boles <dboles@src.gnome.org>
Mon, 18 Sep 2017 17:20:02 +0000 (18:20 +0100)
commitbfe54d1185e218cef1424ba1c561784f6a04e7a5
tree1e258b763c0242f1fa843d54f5ec2c88e4fd1dfd
parentc477dad41d237c35d4e69e803606f38c213ad018
SidebarRow: Unref CloudProvider on change/finalize

It was never unref()d, either when replacing the existing GObject in
set_property(), cleaning up in finalize(), or becoming a placeholder.

Fix by using g_set_object() and g_clear_object() to unref as needed.

This also drops the check that the newly set object is a valid cloud
provider account, as we don’t do the equivalent for any of the other
object-typed properties, and Carlos didn’t think this was important.

https://bugzilla.gnome.org/show_bug.cgi?id=787600
gtk/gtksidebarrow.c