diff options
author | Behdad Esfahbod <behdad@behdad.org> | 2018-05-08 02:47:42 -0700 |
---|---|---|
committer | Behdad Esfahbod <behdad@behdad.org> | 2018-05-08 02:47:42 -0700 |
commit | eba1c16a604d1be774f22541bf3e417f27a27c68 (patch) | |
tree | ca2c9f2a42be07b9aa80140e86f12c37b26d5ad8 /src/main.cc | |
parent | b4fa50501414b7471e840f2ee6b9dfe87080b078 (diff) |
Always lock blob in sanitize. Remove blob->lock_as() in favor of blob->lock()
Diffstat (limited to 'src/main.cc')
-rw-r--r-- | src/main.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.cc b/src/main.cc index 2976c895..9a187366 100644 --- a/src/main.cc +++ b/src/main.cc @@ -56,7 +56,7 @@ main (int argc, char **argv) Sanitizer<OpenTypeFontFile> sanitizer; hb_blob_t *font_blob = sanitizer.sanitize (blob); - const OpenTypeFontFile* sanitized = font_blob->lock_as<OpenTypeFontFile> (); + const OpenTypeFontFile* sanitized = font_blob->as<OpenTypeFontFile> (); if (sanitized == &Null (OpenTypeFontFile)) { printf ("Sanitization of the file wasn't successful. Exit"); |