EVO-melroy-winegui/scripts/valgrind.sh
2024-11-17 01:28:50 +01:00

13 lines
432 B
Bash
Executable file

#!/usr/bin/env bash
# By: Melroy van den Berg
# Description: Used for memory leak analysis,
# be-aware that you will get a lot of false positives messages due to GTK/Glib
cd ./build_debug/bin
G_DEBUG=gc-friendly G_SLICE=always-malloc valgrind \
--suppressions=/usr/share/glib-2.0/valgrind/glib.supp \
--suppressions=/usr/share/gtk-3.0/valgrind/gtk.supp \
--leak-check=full \
--track-origins=yes \
--show-leak-kinds=all \
./winegui