private void recycle() { stopDecodingThisNode(); setBitmap(null); if (treeNodes != null) { for (PageTreeNode child : treeNodes) { child.recycle(); } } }
private void recycleChildren() { if (treeNodes == null) { return; } for (PageTreeNode child : treeNodes) { child.recycle(); } if (!childrenContainBitmaps()) { treeNodes = null; } }