adg: avoid strong child-parent references
commit97ba9878afd1dad0f90b3bf87322533b7e107d60
authorNicola Fontana <ntd@entidi.it>
Tue, 27 Jan 2015 17:38:53 +0000 (27 18:38 +0100)
committerNicola Fontana <ntd@entidi.it>
Tue, 27 Jan 2015 17:38:53 +0000 (27 18:38 +0100)
treea4cb02078739b674f1b29f8c139894ed982fca51
parent1e45297dde74c95bca1a12d169986be552fc62bd
adg: avoid strong child-parent references

adg_entity_set_parent() was referencing the parent, hence generating a
child-parent strong reference. This is bad because when using
adg_container_add() a strong reference was already (and correctly) added
to the child, so there is a reference loop between child and parent.
This is already handled at AdgContainer level by using weak references
on the child instead, so dropping the strong set_parent reference seems
to be the right (TM) thing to do.
src/adg/adg-entity.c