Fix the issue that per-provider frame pool does not get dealloced
This commit is contained in:
parent
ef69460dc7
commit
181f8d2183
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue