diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/Tag.cxx | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/Tag.cxx b/src/Tag.cxx index 7853f0a2f..39560d49d 100644 --- a/src/Tag.cxx +++ b/src/Tag.cxx @@ -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; } |