Fabric: Free image bitmap data during RCTImageComponentView recycling

Summary: Trivial. `imageLocalData` retains a network request, observers and actual bitmaps.

Reviewed By: mdvacca

Differential Revision: D10054430

fbshipit-source-id: 9bea11677b73e9e7ce7bc50bd14ec5515dac60de
This commit is contained in:
Valentin Shergin 2018-09-26 14:30:55 -07:00 committed by Facebook Github Bot
parent 8206e841d1
commit 54e83e0eee

View File

@ -82,6 +82,7 @@ using namespace facebook::react;
{
[super prepareForRecycle];
_imageView.image = nil;
_imageLocalData.reset();
}
#pragma mark - Other