diff options
author | Behdad Esfahbod <behdad@behdad.org> | 2018-11-11 00:11:28 -0500 |
---|---|---|
committer | Behdad Esfahbod <behdad@behdad.org> | 2018-11-11 00:11:28 -0500 |
commit | 2ee1d9f555fba60342bab63294a6dacca10466de (patch) | |
tree | 52f4d76ea4a262bcc96c3d4fa71982b6a79c0535 | |
parent | 5d0078a48b246e713817e5bb6b4efada9618bea3 (diff) |
[blob] Change null object memory mode to DUPLICATE
We never rely on that being equal to readonly. Just not being
writable. Maybe not even that given that the object is inert.
In prep for next commit, using default null pool.
-rw-r--r-- | src/hb-blob.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hb-blob.cc b/src/hb-blob.cc index 9271200b..efca833e 100644 --- a/src/hb-blob.cc +++ b/src/hb-blob.cc @@ -59,7 +59,7 @@ DEFINE_NULL_INSTANCE (hb_blob_t) = nullptr, /* data */ 0, /* length */ - HB_MEMORY_MODE_READONLY, /* mode */ + HB_MEMORY_MODE_DUPLICATE, /* mode */ nullptr, /* user_data */ nullptr /* destroy */ |