projects
/
platform
/
upstream
/
libHarfBuzzSharp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ff199ba
)
[uniscribe] Fix blob lifecycles
author
Behdad Esfahbod
<behdad@behdad.org>
Sun, 7 Aug 2011 07:53:42 +0000
(
03:53
-0400)
committer
Behdad Esfahbod
<behdad@behdad.org>
Sun, 7 Aug 2011 07:53:42 +0000
(
03:53
-0400)
src/hb-uniscribe-shape.cc
patch
|
blob
|
history
diff --git
a/src/hb-uniscribe-shape.cc
b/src/hb-uniscribe-shape.cc
index
da0bced
..
82ef648
100644
(file)
--- a/
src/hb-uniscribe-shape.cc
+++ b/
src/hb-uniscribe-shape.cc
@@
-73,6
+73,8
@@
populate_log_font (LOGFONTW *lf,
lf->lfFaceName,
sizeof (lf->lfFaceName[0]) * LF_FACESIZE)
/ sizeof (lf->lfFaceName[0]);
+ hb_blob_destroy (blob);
+
if (unlikely (!len)) {
DEBUG_MSG (UNISCRIBE, NULL, "Didn't find English name table entry");
return FALSE;
@@
-195,7
+197,6
@@
retry:
DWORD num_fonts_installed;
HANDLE fh = AddFontMemResourceEx ((void *) blob_data, blob_length, 0, &num_fonts_installed);
- hb_blob_destroy (blob);
if (unlikely (!fh))
FAIL ("AddFontMemResourceEx() failed");