5 ms·
I like GTK but...... small example have error (memory leak) in valgrind
by Western0 1y ago
I like GTK but......
small example have error (memory leak) in valgrind
- unwind 1y agoWithout further detail, that's not very helpful. GTK doesn't implement garbage collection, you need to clean up by destroying widgets and other resources that you have created. Of course, the operating system will free all resources used by your process when it ends, so that kind of final cleanup is often omitted (and even more so in example code).
- 1718627440 1y agoGTK intentionally doesn't calls free, unless some debug symbol is called. This is to prevent trashing before exiting, but is annoying when targeting correctness.
- Western0 1y agoshow me any example from oficial documentation gtk[1,2,3...] qt etc for no memory leak in valgrind