1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

HarfBuzz: Enable atexit to silence some CRT debug memory leak warnings

Before this change, after running a JUCE app on Windows under a
debugger, and quitting it normally (e.g. pressing the close title
button), the output log would display some memory leak diagnostics. This
is because HarfBuzz expects to clean up statics using atexit, but atexit
was not enabled. This change enables atexit on supported platforms,
including Windows.
This commit is contained in:
reuk 2024-06-11 15:50:38 +01:00 committed by Tom Poole
parent 61a03097ec
commit 12ef0a0200

View file

@ -53,6 +53,8 @@ JUCE_BEGIN_IGNORE_WARNINGS_GCC_LIKE ("-Wdeprecated-declarations",
"-Wexpansion-to-defined",
"-Wunsafe-loop-optimizations")
#define HAVE_ATEXIT 1
#if JUCE_LINUX || JUCE_BSD
#ifndef JUCE_USE_FREETYPE
#define JUCE_USE_FREETYPE 1