Hello !
-almost- 3 years after my first sfml program, I still can't get around some weird, weird weiiiiiiird leak.
If I do an empty main, as simple as
int main(){return 0;}
and compile with
g++ [file].cpp -lsfml-graphics
and run
valgrind ./a.out
I got leaks reports.
leaks:
still reachable: 18,612 bytes in 6 blocks
some details with --leak-check=full and --show-leak-kinds=all:
==5515== 4 bytes in 1 blocks are still reachable in loss record 1 of 6
==5515== at 0x483977F: malloc (vg_replace_malloc.c:309)
==5515== by 0x53FE684: ??? (in /usr/lib/libglib-2.0.so.0.6400.2)
==5515== by 0x53FE75B: g_private_get (in /usr/lib/libglib-2.0.so.0.6400.2)
==5515== by 0x54281FD: g_slice_alloc (in /usr/lib/libglib-2.0.so.0.6400.2)
==5515== by 0x5460E0E: g_hash_table_new_full (in /usr/lib/libglib-2.0.so.0.6400.2)
==5515== by 0x543EF5B: ??? (in /usr/lib/libglib-2.0.so.0.6400.2)
==5515== by 0x4011099: call_init.part.0 (in /usr/lib/ld-2.31.so)
==5515== by 0x40111A0: _dl_init (in /usr/lib/ld-2.31.so)
==5515== by 0x4002139: ??? (in /usr/lib/ld-2.31.so)
If anybody knows anything about this, I would like to know why this is happening, and if possible, how to fix it !
I tried this on 2 different hardwares with different graphics drivers, under fedora, manjaro and arch linux, and I still have the same issue.