diff options
Diffstat (limited to 'libass')
-rw-r--r-- | libass/ass_directwrite.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |