Skip to content

Commit

Permalink
Fix memory leak in conversation fragment.
Browse files Browse the repository at this point in the history
  • Loading branch information
cody-signal committed Feb 13, 2023
1 parent 805ccc4 commit 7a72a9a
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -456,6 +456,12 @@ public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceStat
});
}

@Override
public void onDestroy() {
ApplicationDependencies.getDatabaseObserver().unregisterObserver(threadDeletedObserver);
super.onDestroy();
}

private @NonNull GiphyMp4ProjectionRecycler initializeGiphyMp4() {
int maxPlayback = GiphyMp4PlaybackPolicy.maxSimultaneousPlaybackInConversation();
List<GiphyMp4ProjectionPlayerHolder> holders = GiphyMp4ProjectionPlayerHolder.injectVideoViews(requireContext(),
Expand Down

0 comments on commit 7a72a9a

Please sign in to comment.