summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGrigori Goronzy <greg@chown.ath.cx>2015-05-23 13:21:41 +0200
committerGrigori Goronzy <greg@chown.ath.cx>2015-07-10 10:42:41 +0200
commit3ea82cd452b43ae74d11a9af6fa9b55faaa0e576 (patch)
treebea539be87b3a1bd79c06d54b6fe3cfb5f874e67
parente65d7bb948d3a25a7d73bcfb3b9a799425c0319a (diff)
downloadlibass-3ea82cd452b43ae74d11a9af6fa9b55faaa0e576.tar.bz2
libass-3ea82cd452b43ae74d11a9af6fa9b55faaa0e576.tar.xz
directwrite: use standard malloc
-rw-r--r--libass/ass_directwrite.cpp2
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);
}