Commit b1d50567 authored by Warren Dukes's avatar Warren Dukes

fix bug #1458

git-svn-id: https://svn.musicpd.org/mpd/trunk@5589 09075e82-0dd4-0310-85a5-a0d7c8717e4f
parent d93e9395
......@@ -489,9 +489,8 @@ MpdTag *newMpdTag(void)
static void deleteItem(MpdTag * tag, int index)
{
tag->numOfItems--;
assert(index < tag->numOfItems);
tag->numOfItems--;
removeTagItemString(tag->items[index].type, tag->items[index].value);
/* free(tag->items[index].value); */
......
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