If a MediaServer2 provider sends an update for /foo/bar/baz and
/foo/bar chances are that the update for /foo/bar invalidates the
parent pointer in /foo/bar/baz causing a crash of various sorts.
Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=759206
DBusProxyFlags.DO_NOT_LOAD_PROPERTIES);
this.update_container.begin (true);
+ if (parent != null) {
+ parent.add_weak_pointer (&this.parent);
+ }
+ }
+
+ ~Container() {
+ if (this.parent != null) {
+ this.parent.remove_weak_pointer (&this.parent);
+ }
}
public override async MediaObjects? get_children (uint offset,