Commit c2844e84 authored by Warren Dukes's avatar Warren Dukes

test

git-svn-id: https://svn.musicpd.org/mpd/trunk@2652 09075e82-0dd4-0310-85a5-a0d7c8717e4f
parent bb15d3f2
......@@ -24,6 +24,8 @@ typedef struct tagTrackerItem {
char * getTagItemString(int type, char * string) {
ListNode * node;
if(type == TAG_ITEM_TITLE) return strdup(string);
if(tagLists[type] == NULL) {
tagLists[type] = makeList(free, 1);
}
......@@ -50,7 +52,13 @@ void removeTagItemString(int type, char * string) {
if(tagLists[type] == NULL) return;
node = findNodeInList(tagLists[type], string);
assert(node);
/*assert(node);*/
if(!node) {
free(string);
return;
}
if(node) {
TagTrackerItem * item = node->data;
item->count--;
......
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