Suppress lsan glfw leak

This commit is contained in:
Joseph Ferano 2026-07-19 13:57:54 +07:00
parent 78b4b739e6
commit 538a6698d8
3 changed files with 5 additions and 1 deletions

1
.gitignore vendored
View File

@ -11,3 +11,4 @@
/writeimage
*.fasl
*.so
/.emacs.desktop*

View File

@ -16,7 +16,7 @@ game.so: game.cpp game.h lib.h sprites.h game_data.h Makefile
mv game.so.tmp game.so
run: all
LD_LIBRARY_PATH=lib ./main
LSAN_OPTIONS=suppressions=./lsan.supp LD_LIBRARY_PATH=lib ./main
clean:
rm -vf *.so *.o main

3
lsan.supp Normal file
View File

@ -0,0 +1,3 @@
# One-time GLFW/X11/GL driver init allocations reached via InitWindow.
# Never freed by design; not owned by this codebase.
leak:_glfwCreateWindowX11