diff --git a/src/graph/graph.hh b/src/graph/graph.hh index e18b03163..26ad00bdd 100644 --- a/src/graph/graph.hh +++ b/src/graph/graph.hh @@ -1371,6 +1371,7 @@ struct graph_t vertices_.tail ().distance = 0; hb_priority_queue_t queue; + queue.alloc (count); queue.insert (0, vertices_.length - 1); hb_vector_t visited;