krakjoe / ui

Cross platform UI development in PHP
Other
519 stars 39 forks source link

Reference Counting #2

Closed krakjoe closed 7 years ago

krakjoe commented 7 years ago

Any control that contain child controls should store references to those controls to maintain refcounts.

Currently Control::append(Area), or anything similar, may behave strangely when there is no reference to Area after the call to append returned.

Solved simply by keeping a reference.

Solved properly by adding tables of controls to all layout controls, and windows.