jdelauney / TGIFViewer

TGIFViewer composant visuel pour l'affichage d'animations au format GIF (Graphic Interchange Format) avec Free Pascal et Lazarus
Mozilla Public License 2.0
18 stars 2 forks source link

Memory leaks #12

Closed bpranoto closed 3 years ago

bpranoto commented 3 years ago

There are still memory leaks on TGifViewer.

Environment: Compiler: Lazarus 2.0.12/FPC 3.2.0 O/S: Linux ubuntu 18.04/64bits

Step to reproduce:

  1. Download the attached project
  2. Set the compilation option to use heaptrc
  3. Compile and run the project
  4. Close the program

Inspect the heaptrc output, you'll see a lot of memory leaks.

I have tracked all the bugs and attach the patch file to fix these bugs. tgifviewer_memory_leak.zip tgifviewer_memory_leak.fix.diff.txt

jdelauney commented 3 years ago

Thank you bpranoto, i've applied your patch 👍