From 3ea82cd452b43ae74d11a9af6fa9b55faaa0e576 Mon Sep 17 00:00:00 2001 From: Grigori Goronzy Date: Sat, 23 May 2015 13:21:41 +0200 Subject: directwrite: use standard malloc --- libass/ass_directwrite.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- cgit v1.2.3