void ClearChgQueue() { while (m_ChgQueue != null) { var next = m_ChgQueue.NextNode; m_ChgQueue.Dispose(); m_ChgQueue = next; } }
private static void ClearVisibleQueue(ref VisibleNode root) { if (root == null) { return; } while (root != null) { VisibleNode nextNode = root.NextNode; root.Dispose(); root = nextNode; } root = null; }