Searching in playlist causes memory leak
-
which version of Amberol are you using?
0.10.3
-
which operating system are you using?
EndeavourOS
-
how did you install Amberol?
From Flathub
-
the necessary steps to reproduce the issue
- Open Amberol
- Create/restore a playlist
- Search for anything in the playlist's search bar.
- Memory usage increases every time something is searched and never gets freed.
-
the expected outcome
Memory usage shouldn't be that much and at least it should stabilize after a few searches.
-
a description of the behavior; screenshots are also welcome
After 50-60 searches:
Memory usage doesn't decrease after clearing playlist:
Normal memory usage with same playlist:
This happens for both songs with cover arts and songs without them. Cause of the leak is probably the cover images. I found this bug after finding a similar bug in my program, but I haven't found a solution yet. There's a slight chance that this is because of GdkTexture or GtkImage but I don't think this is the case because Foliate doesn't have this problem with searching for books.