Filter photocopy memory leak
GIMP version: 2.10
Operating System: Ubuntu 18.04 x64
Package: installed through apt install gimp
Description of the bug
When you go to Filters|Artistic|Photocopy, it opens a window and allocates around 1GB of Ram which is not freed when you close this window but only when you totally close gimp. (around 4/5 of the allocated ram stays allocated) Reopening this window again will add another 1GB of used ram.
Reproduction
Is the bug reproducible? Always
Reproduction steps:
1.Open a large image (I used a 30MB bmp) 2.Go to Filters|Artistic|Photocopy 3.Close the Photocopy window
Expected result: no extra ram used after closing the Photocopy window
Actual result: a lot of ram allocated but not freed
Additional information
It does not seem to work that much with small images or PNG/JPG/WEBP...
IMG_0002 <- this is the image with which I spotted this bug