提交 826e2273 编写于 作者: B Behdad Esfahbod

[uniscribe] Fix blob lifecycles

上级 ff199ba3
...@@ -73,6 +73,8 @@ populate_log_font (LOGFONTW *lf, ...@@ -73,6 +73,8 @@ populate_log_font (LOGFONTW *lf,
lf->lfFaceName, lf->lfFaceName,
sizeof (lf->lfFaceName[0]) * LF_FACESIZE) sizeof (lf->lfFaceName[0]) * LF_FACESIZE)
/ sizeof (lf->lfFaceName[0]); / sizeof (lf->lfFaceName[0]);
hb_blob_destroy (blob);
if (unlikely (!len)) { if (unlikely (!len)) {
DEBUG_MSG (UNISCRIBE, NULL, "Didn't find English name table entry"); DEBUG_MSG (UNISCRIBE, NULL, "Didn't find English name table entry");
return FALSE; return FALSE;
...@@ -195,7 +197,6 @@ retry: ...@@ -195,7 +197,6 @@ retry:
DWORD num_fonts_installed; DWORD num_fonts_installed;
HANDLE fh = AddFontMemResourceEx ((void *) blob_data, blob_length, 0, &num_fonts_installed); HANDLE fh = AddFontMemResourceEx ((void *) blob_data, blob_length, 0, &num_fonts_installed);
hb_blob_destroy (blob);
if (unlikely (!fh)) if (unlikely (!fh))
FAIL ("AddFontMemResourceEx() failed"); FAIL ("AddFontMemResourceEx() failed");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册