Fix the issue that per-provider frame pool does not get dealloced

This commit is contained in:
DreamPiggy 2023-04-26 14:58:19 +08:00
parent ef69460dc7
commit 181f8d2183
1 changed files with 5 additions and 0 deletions

View File

@ -57,6 +57,11 @@
return player;
}
- (void)dealloc {
// Dereference the frame pool, when zero the frame pool for provider will dealloc
[SDImageFramePool unregisterProvider:self.animatedProvider];
}
#pragma mark - Private
- (SDDisplayLink *)displayLink {