[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[freetype2] GSoC-2020-anuj ed49fac: [sdf] Bug fix.
From: |
Anuj Verma |
Subject: |
[freetype2] GSoC-2020-anuj ed49fac: [sdf] Bug fix. |
Date: |
Fri, 21 Aug 2020 07:55:24 -0400 (EDT) |
branch: GSoC-2020-anuj
commit ed49facfe0840bc71f9dab885540d24cc43ebc68
Author: Anuj Verma <anujv@iitbhilai.ac.in>
Commit: Anuj Verma <anujv@iitbhilai.ac.in>
[sdf] Bug fix.
* src/sdf/ftsdf.c (*): Only track memory when `FT_DEBUG_MEMORY' is defined.
Some
variables used internally by the freetype memory debugger are only
defined when
we are tracking memory. If `FT_DEBUG_MEMORY' is not defined those variable
are not defined and we get undefined reference error.
---
src/sdf/ftsdf.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/sdf/ftsdf.c b/src/sdf/ftsdf.c
index 1b9d33b..3254db9 100644
--- a/src/sdf/ftsdf.c
+++ b/src/sdf/ftsdf.c
@@ -83,7 +83,10 @@
*
*/
-#ifdef FT_DEBUG_LEVEL_TRACE
+/* The memory tracker only works when `FT_DEBUG_MEMORY' is defined */
+/* because some variables such as `_ft_debug_file' are defined when */
+/* `FT_DEBUG_MEMORY' is defined. */
+#if defined(FT_DEBUG_LEVEL_TRACE) && defined(FT_DEBUG_MEMORY)
#undef FT_DEBUG_INNER
#undef FT_ASSIGNP_INNER
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [freetype2] GSoC-2020-anuj ed49fac: [sdf] Bug fix.,
Anuj Verma <=