DBGrid - Memory leak
- Lazarus/FPC Version: Lazarus 2.3.0 (rev main-2_3-2524-g6dc31007) FPC 3.3.1 i386-win32-win32/win64
- Operating System: Win
- CPU / Bitness: 32
What happens
DBGrid has a memory leak when you try to deselect an unselected record in the SelectedRows list. We need to explicitly decrase reference count just like we did earlier in this method.
What did you expect
I expect no memory leak. Patch attached.dbgridmemleak.patch
Steps to reproduce
Run attached project, click Button1 and exit app.project1.zip