tag: converted tag_item.value to a char array
The value is stored in the same memory allocation as the tag_item struct; this saves memory because we do not store the value pointer anymore. Also remove the getTagItemString()/removeTagItemString() dummies.
This commit is contained in:
@@ -37,16 +37,6 @@ struct visited {
|
||||
static struct visited *visited_heads[TAG_NUM_OF_ITEM_TYPES];
|
||||
static unsigned num_visited[TAG_NUM_OF_ITEM_TYPES];
|
||||
|
||||
char *getTagItemString(int type mpd_unused, char *string)
|
||||
{
|
||||
return xstrdup(string);
|
||||
}
|
||||
|
||||
void removeTagItemString(int type mpd_unused, char *string)
|
||||
{
|
||||
free(string);
|
||||
}
|
||||
|
||||
static int visit_tag_items(int fd mpd_unused, Song *song, void *data)
|
||||
{
|
||||
enum tag_type type = (enum tag_type)(size_t)data;
|
||||
|
Reference in New Issue
Block a user