Memory leak in database libraries
Description
Memory keeps increasing when using database libraries as shown in the video:
Screencast_from_2024-03-14_19-42-36
After several times of pressing "add a symbol", the memory usage jumps as more memory is requested from the operating system.
Steps to reproduce
- Add a large database library to the configuration
- Repeatedly press
A
(add a symbol) andEsc
twice, to cancel the dialog - Notice memory usage increasing
KiCad Version
Application: KiCad Schematic Editor x86_64 on x86_64
Version: 8.0.1-8.0.1-0~ubuntu23.10.1, release build
Libraries:
wxWidgets 3.2.2
FreeType 2.13.1
HarfBuzz 8.0.1
FontConfig 2.14.2
Platform: Ubuntu 23.10, 64 bit, Little endian, wxGTK, X11, ubuntu, x11
wxWidgets: 3.2.2 (wchar_t,wx containers) GTK+ 3.24
Boost: 1.74.0
OCC: 7.6.3
Curl: 8.2.1
ngspice: 42
Compiler: GCC 13.2.0 with C++ ABI 1018
Build settings:
Edited by Roberto Fernandez Bautista