Closed longdt57 closed 1 year ago
Thank you for reporting this. Do you have a fix or any suggestion fro this?
Yes, I do
Please remove lines 148 and 154 at class: PhotoEditorView.
Line 48 already called the setSourceBitmap
.
Yes, I do Please remove lines 148 and 154 at class: PhotoEditorView. Line 48 already called the
setSourceBitmap
.
Thanks for the PR. Have you tested it with these PR changes? Also, some unit tests are failing.
I run test on my laptop and it passes all unit/ui test. Humm
Describe the bug Leak Graphics memory when changing filter.
To Reproduce Steps to reproduce the behavior:
Expected behavior No Leak memory
Screenshots/Video/GIFs![image](https://user-images.githubusercontent.com/8809113/232175306-c97ed366-5bbd-4565-a970-3c0b9e0523d1.png)
Smartphone Info:
Additional context Those line of code is the root cause. setFilterEffect-setSourceBitmap-1
[setFilterEffect-setSourceBitmap-2] https://github.com/burhanrashid52/PhotoEditor/blob/master/photoeditor/src/main/java/ja/burhanrashid52/photoeditor/PhotoEditorView.kt#L154