[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[freetype2] anuj-distance-field 398cae8: [base] Fix memory leaks due to
From: |
Anuj Verma |
Subject: |
[freetype2] anuj-distance-field 398cae8: [base] Fix memory leaks due to FreeType internals. |
Date: |
Wed, 12 Aug 2020 07:57:38 -0400 (EDT) |
branch: anuj-distance-field
commit 398cae839819d370813cbe5fb3f6aed4b6cfe035
Author: Anuj Verma <anujv@iitbhilai.ac.in>
Commit: Anuj Verma <anujv@iitbhilai.ac.in>
[base] Fix memory leaks due to FreeType internals.
* src/base/ftobjs.c (ft_remove_renderer): Similar to
`ft_add_renderer', remover raster's `glyph_format'
check. Due to this the rasterizers which do not have
`glyph_format' of `FT_GLYPH_FORMAT_OUTLINE' won't get
deallocated (the `raster_done' function is no called).
---
[GSoC]ChangeLog | 10 ++++++++++
src/base/ftobjs.c | 3 +--
2 files changed, 11 insertions(+), 2 deletions(-)
diff --git a/[GSoC]ChangeLog b/[GSoC]ChangeLog
index 4d1945a..bb217fc 100644
--- a/[GSoC]ChangeLog
+++ b/[GSoC]ChangeLog
@@ -1,5 +1,15 @@
2020-08-12 Anuj Verma <anujv@iitbhilai.ac.in>
+ [base] Fix memory leaks due to FreeType internals.
+
+ * src/base/ftobjs.c (ft_remove_renderer): Similar to
+ `ft_add_renderer', remover raster's `glyph_format'
+ check. Due to this the rasterizers which do not have
+ `glyph_format' of `FT_GLYPH_FORMAT_OUTLINE' won't get
+ deallocated (the `raster_done' function is no called).
+
+2020-08-12 Anuj Verma <anujv@iitbhilai.ac.in>
+
[sdf] Fix memory leaks.
* src/sdf/ftsdf.c (sdf_generate_with_overlaps): Deallocate
diff --git a/src/base/ftobjs.c b/src/base/ftobjs.c
index 94b6972..521c5b7 100644
--- a/src/base/ftobjs.c
+++ b/src/base/ftobjs.c
@@ -4440,8 +4440,7 @@
/* release raster object, if any */
- if ( render->clazz->glyph_format == FT_GLYPH_FORMAT_OUTLINE &&
- render->raster )
+ if ( render->raster )
render->clazz->raster_class->raster_done( render->raster );
/* remove from list */
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [freetype2] anuj-distance-field 398cae8: [base] Fix memory leaks due to FreeType internals.,
Anuj Verma <=