]> granicus.if.org Git - libass/commitdiff
directwrite: use standard malloc
authorGrigori Goronzy <greg@chown.ath.cx>
Sat, 23 May 2015 11:21:41 +0000 (13:21 +0200)
committerGrigori Goronzy <greg@chown.ath.cx>
Fri, 10 Jul 2015 08:42:41 +0000 (10:42 +0200)
libass/ass_directwrite.cpp

index 415afef0584d5a0188678cb5b33a9736e56a551f..16ac8d7c5d334506a7c13ac1dee51f50f88eb615 100644 (file)
@@ -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);
                        }