Balloon icon indicating copy to clipboard operation
Balloon copied to clipboard

Memory Leak on BalloonComposeView

Open danielpartogi opened this issue 7 months ago • 1 comments

Please complete the following information:

  • Library Version : 1.5.4
  • Affected Device(s) : should be any device

Describe the Bug:

'm using Compose implemented in a Fragment. When the Fragment reaches the onDestroyView state, it causes a memory leak, as shown in the image I attached.

Image

Expected Behavior:

The Balloon builder should not cause a memory leak.

after i check the code it self, it seems we need make the lifecycleowner on BalloonComposeView to null on dispose of ballon

Image Image

danielpartogi avatar Jul 16 '25 09:07 danielpartogi

Hi @danielpartogi, I'm sorry for the late response. Have you already set the .setLifecycleOwner(lifecycleOwner) on your Balloon.Builder() when you create your own balloon?

skydoves avatar Aug 10 '25 07:08 skydoves