disable glib slice allocator
Chris Lee @klee93
1 files changed,
7 insertions(+),
0 deletions(-)
jump to
M
src/main.c
→
src/main.c
@@ -797,6 +797,13 @@ }
int main(int argc, char **argv) { + if (!getenv("G_SLICE") && setenv("G_SLICE", "always-malloc", 1) == 0) { + fprintf(stderr, + YELLOW "tint2: reexecuting tint2 without glib slice allocator..." RESET "\n"); + execvp(argv[0], argv); + fprintf(stderr, RED "tint2: %s %d: execvp failed! carrying on..." RESET "\n", + __FILE__, __LINE__); + } gboolean restart; do { restart = FALSE;