creocoder / yii2-nested-sets

The nested sets behavior for the Yii framework.
Other
446 stars 129 forks source link

Possible memory leak #22

Closed juffin-halli closed 9 years ago

juffin-halli commented 10 years ago

$_cached values could be cleared only in destructor method, meanwhile behavior might already detached and owner property will be nulled, so get_class($this->owner) values will be wrong. Also, maybe, it is sensible to clear $_cached values with behavior detaching .

creocoder commented 9 years ago

There is no more possible memory leaks inside behavior for Yii 2 release version. Also working approach was changed. We can complettely forget about troubles like this.