Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

fix: remove stop code as there is no memory leak now

Prateek Sunalebab9fd1a0d5
diff --git a/mobile/lib/ui/viewer/file/video_widget_native.dart b/mobile/lib/ui/viewer/file/video_widget_native.dart
index f91b10d53e..2ca7a4ac92 100644
--- a/mobile/lib/ui/viewer/file/video_widget_native.dart
+++ b/mobile/lib/ui/viewer/file/video_widget_native.dart
@@ -178,9 +178,7 @@ class _VideoWidgetNativeState extends State<VideoWidgetNative>
@override
void dispose() {
_subscription?.cancel();
- _controller?.stop();
_controller?.dispose();
- _controller = null;
//https://github.com/fluttercandies/flutter_photo_manager/blob/8afba2745ebaac6af8af75de9cbded9157bc2690/README.md#clear-caches
if (_shouldClearCache) {