Merge pull request #38481 from RandomShaper/improve_yield
Fix object leaks caused by unfulfilled yields
This commit is contained in:
commit
a4b829410c
5 changed files with 91 additions and 32 deletions
|
|
@ -120,6 +120,9 @@ private:
|
|||
|
||||
public:
|
||||
_FORCE_INLINE_ bool in_list() const { return _root; }
|
||||
_FORCE_INLINE_ void remove_from_list() {
|
||||
if (_root) _root->remove(this);
|
||||
}
|
||||
_FORCE_INLINE_ SelfList<T> *next() { return _next; }
|
||||
_FORCE_INLINE_ SelfList<T> *prev() { return _prev; }
|
||||
_FORCE_INLINE_ const SelfList<T> *next() const { return _next; }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue