提交 6215fb8e 编写于 作者: B Behdad Esfahbod

[serialize] Actually reclaim storage from duplicate objects

上级 3305a2ca
......@@ -198,6 +198,7 @@ struct hb_serialize_context_t
obj->tail = head;
obj->next = nullptr;
unsigned len = obj->tail - obj->head;
head = obj->head; /* Rewind head. */
if (!len)
{
......@@ -214,7 +215,6 @@ struct hb_serialize_context_t
tail -= len;
memmove (tail, obj->head, len);
head = obj->head;
obj->head = tail;
obj->tail = tail + len;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册