Reset the useAllocCallbacks on font init.

This commit is contained in:
shenweip committed 2020-03-16 10:54:46 +08:00
1 parent cefecb12b7
commit a286c657e3
1 file changed
+1
+1
View File
@@ -874,6 +874,7 @@ int GetInternalFontIndex(Font *font) {
}
void __FontInit() {
useAllocCallbacks = true;
actionPostAllocCallback = __KernelRegisterActionType(PostAllocCallback::Create);
actionPostOpenCallback = __KernelRegisterActionType(PostOpenCallback::Create);
actionPostOpenAllocCallback = __KernelRegisterActionType(PostOpenAllocCallback::Create);