Skip to content
Myr

main: only call cairo_debug_reset_static_data() in debug builds

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Calling cairo_debug_reset_static_data() is necessary when Valgrind debugging, to not drown in false positives. However, librsvg isn’t Valgrind clean. So, to prevent release builds from getting random crashes due to cairo asserting in cairo_debug_reset_static_data(), only call it in debug builds.

authored by Daniel Eklöf · committed by Daniel Eklöf · parent 683bb53 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:main.c+1 added-1 removed
590 unmodified lines
591 applications_destroy(apps);592 icon_themes_destroy(themes);593 free(prompt_allocated);594595#if defined(FUZZEL_ENABLE_CAIRO)595#if defined(FUZZEL_ENABLE_CAIRO) && defined(_DEBUG)596 cairo_debug_reset_static_data();597#endif598 log_deinit();599 return ret;
1 unmodified line