Fix leaks

This commit is contained in:
Ali
2023-11-01 22:23:44 +04:00
parent f630f7c75e
commit dc6bb4254c
2 changed files with 4 additions and 0 deletions

View File

@@ -439,6 +439,7 @@ public final class ChatMessageInteractiveFileNode: ASDisplayNode {
guard let strongSelf = self else {
return
}
strongSelf.transcribeDisposable?.dispose()
strongSelf.transcribeDisposable = nil
})
} else {
@@ -447,6 +448,7 @@ public final class ChatMessageInteractiveFileNode: ASDisplayNode {
guard let strongSelf = self else {
return
}
strongSelf.transcribeDisposable?.dispose()
strongSelf.transcribeDisposable = nil
})
}