Skip to content

Commit 4c64d31

Browse files
committed
LibGfx: Workaround LSAN false positive
1 parent 73f14f3 commit 4c64d31

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

AK/LsanSuppressions.h

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,15 @@
88

99
#include <AK/Platform.h>
1010

11+
#ifndef AK_OS_WINDOWS
12+
# define EXPORT __attribute__((visibility("default")))
13+
#else
14+
# define EXPORT __declspec(dllexport)
15+
#endif
16+
1117
#ifdef HAS_ADDRESS_SANITIZER
1218
extern "C" {
13-
char const* __lsan_default_suppressions();
19+
EXPORT char const* __lsan_default_suppressions();
1420
char const* __lsan_default_suppressions()
1521
{
1622
// Both Skia and Chromium suppress false positive FontConfig leaks

0 commit comments

Comments
 (0)