Просмотр исходного кода

Merge pull request #1886 from IgorFedorchuk/fix/gif_deinit

Attempt to fix crash on changing gif
Wei Wang 4 лет назад
Родитель
Сommit
15dde451f9
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      Sources/Views/AnimatedImageView.swift

+ 1 - 0
Sources/Views/AnimatedImageView.swift

@@ -472,6 +472,7 @@ extension AnimatedImageView {
         }
         }
         
         
         deinit {
         deinit {
+            resetAnimatedFrames()
             GraphicsContext.end()
             GraphicsContext.end()
         }
         }