Memory Management¶
C#: Garbage collection
Vala: Automatic reference counting
This has both advantages and disadvantages.
Reference counting is deterministic, but you can form reference cycles in some
cases. In these cases you must use weak references
in order to break those cycles. The Vala keyword for this is weak
.