Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.

Commit 0b4c890

Browse files
committed
[image_picker] Fix activity leak
1 parent c85fa03 commit 0b4c890

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

packages/image_picker/image_picker/android/src/main/java/io/flutter/plugins/imagepicker/ImagePickerPlugin.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,8 @@ private void tearDown() {
214214
channel = null;
215215
application.unregisterActivityLifecycleCallbacks(observer);
216216
application = null;
217+
activity = null;
218+
observer = null;
217219
}
218220

219221
@VisibleForTesting

0 commit comments

Comments
 (0)