You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if I call removeDelegate from subscriber's dealloc, the node object stays in nodeDelegates array, because weak references has been already nulled, but the object is still alive. This leads to a garbage in nodeDelegates list, because this code in removeDelegate:delegateQueue::
if (delegate == nodeDelegate)
is never YES in that case (nodeDelegate ==nil). So I had to expand it into this code:
if (delegate == nodeDelegate || !nodeDelegate)
This will cleanup the list of the dead nodes.
The text was updated successfully, but these errors were encountered:
if I call removeDelegate from subscriber's dealloc, the node object stays in nodeDelegates array, because weak references has been already nulled, but the object is still alive. This leads to a garbage in nodeDelegates list, because this code in removeDelegate:delegateQueue::
if (delegate == nodeDelegate)
is never YES in that case (nodeDelegate ==nil). So I had to expand it into this code:
if (delegate == nodeDelegate || !nodeDelegate)
This will cleanup the list of the dead nodes.
The text was updated successfully, but these errors were encountered: