Page 1 of 1

Plugin "Markdown Image". Memory leaks

Posted: 13.08.2025 16:04
by king.midas
The excellent `cuda_markdown_image` plugin has a memory leak issue: it seems that each image insertion reclaims memory. And closing the file, or deleting the line with the picture (followed by automatic deletion of the picture from the screen), does not free up memory.

How to repeat:
- Open Markdown file with picture
- Close it
- Open it again
- Repeat

In the task manager, you can see that Cudatext only takes up memory
Example:
https://www.dropbox.com/scl/fi/4i3epool ... msstb&dl=0

CudaText 1.226.1.1, win64-x86_64-win32, fpc 3.2.3

Re: Plugin "Markdown Image". Memory leaks

Posted: 13.08.2025 19:35
by main Alexey
confirmed. thanks for report.
seems fixed ('htop' program shows all is ok).
beta
https://github.com/Alexey-T/CudaText/di ... t-14096576

OK now?

Re: Plugin "Markdown Image". Memory leaks

Posted: 13.08.2025 19:50
by king.midas
main Alexey wrote: 13.08.2025 19:35 confirmed. thanks for report.
seems fixed ('htop' program shows all is ok).
beta
https://github.com/Alexey-T/CudaText/di ... t-14096576

OK now?
Yes, this work!
https://www.dropbox.com/scl/fi/d3f0jaa5 ... tcubv&dl=0
Thank you!