mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
efb65e5665
Summary: The removeClippedSubviews optimization often detaches views while maintaining strong references to them (so they can be attached again later on). However, when removing the parent view, any detached views end up not being cleaned up or removed, thus leaking memory. This fixes this by explicitly dropping detached views when the parent is removed. Reviewed By: astreet Differential Revision: D3337513