diff --git a/src/graph/graph.hh b/src/graph/graph.hh index 8351fc2a9..9e962cfc5 100644 --- a/src/graph/graph.hh +++ b/src/graph/graph.hh @@ -154,6 +154,7 @@ struct graph_t { hb_hashmap_t result; + result.alloc (obj.real_links.length); for (const auto& l : obj.real_links) { result.set (l.position, l.objidx); }