Tag: check bulk mode in Clear()
This commit is contained in:
@@ -143,7 +143,14 @@ Tag::Clear()
|
|||||||
tag_pool_put_item(items[i]);
|
tag_pool_put_item(items[i]);
|
||||||
tag_pool_lock.unlock();
|
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;
|
items = nullptr;
|
||||||
num_items = 0;
|
num_items = 0;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user