From: Grigori Goronzy Date: Sat, 23 May 2015 11:21:41 +0000 (+0200) Subject: directwrite: use standard malloc X-Git-Tag: 0.13.0~28^2~61 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3ea82cd452b43ae74d11a9af6fa9b55faaa0e576;p=libass directwrite: use standard malloc --- diff --git a/libass/ass_directwrite.cpp b/libass/ass_directwrite.cpp index 415afef..16ac8d7 100644 --- a/libass/ass_directwrite.cpp +++ b/libass/ass_directwrite.cpp @@ -210,7 +210,7 @@ static void scan_fonts(IDWriteFactory *factory, ASS_FontProvider *provider) return; size_needed = WideCharToMultiByte(CP_UTF8, 0, localeName, -1, NULL, 0, NULL, NULL); - psName = (char*)ass_aligned_alloc(32, size_needed); + psName = (char*)malloc(size_needed); WideCharToMultiByte(CP_UTF8, 0, localeName, -1, psName, size_needed, NULL, NULL); }