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:
parent
61a03097ec
commit
12ef0a0200
1 changed files with 2 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue