Commit ba79f4c1 authored by Max Kellermann's avatar Max Kellermann

Tag: check bulk mode in Clear()

parent 8b2dcf70
......@@ -143,7 +143,14 @@ Tag::Clear()
tag_pool_put_item(items[i]);
tag_pool_lock.unlock();
g_free(items);
if (items == bulk.items) {
#ifndef NDEBUG
assert(bulk.busy);
bulk.busy = false;
#endif
} else
g_free(items);
items = nullptr;
num_items = 0;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment