[vlc-commits] freetype: darwin: fix memory-leak

Filip Roséen git at videolan.org
Wed Jul 4 23:43:50 CEST 2018


vlc/vlc-3.0 | branch: master | Filip Roséen <filip at atch.se> | Wed Jul  4 09:34:14 2018 +0200| [a7505eeb251398575ca34944a1215ea2b84b17ac] | committer: Marvin Scholz

freetype: darwin: fix memory-leak

Signed-off-by: Marvin Scholz <epirat07 at gmail.com>
(cherry picked from commit 67820835539624b5e71f9407c067be846b475a51)
Signed-off-by: Marvin Scholz <epirat07 at gmail.com>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=a7505eeb251398575ca34944a1215ea2b84b17ac
---

 modules/text_renderer/freetype/fonts/darwin.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/modules/text_renderer/freetype/fonts/darwin.c b/modules/text_renderer/freetype/fonts/darwin.c
index cba5fb21d2..47a011eed0 100644
--- a/modules/text_renderer/freetype/fonts/darwin.c
+++ b/modules/text_renderer/freetype/fonts/darwin.c
@@ -289,6 +289,7 @@ done:
     CFRelease(codepointString);
     CFRelease(fallbackFont);
     CFRelease(fallbackFontFamilyName);
+    free(psz_fallbackFamilyName);
     free(psz_lc_fallback);
     free(psz_fontPath);
     if (postScriptFallbackFontname != NULL)



More information about the vlc-commits mailing list