X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=mood.c;h=cdc0745a255f994eb1a37c661cbfa1dfe1952221;hp=40f3cacbb7d672d4c1d6e1b60420e219e556a350;hb=dded41e5bed40cca8876e1056351cc1dbab309d0;hpb=7ba6e107eb38c5ceb6f66aac21ad6a5a3afa49ad diff --git a/mood.c b/mood.c index 40f3cacb..cdc0745a 100644 --- a/mood.c +++ b/mood.c @@ -84,7 +84,7 @@ typedef void mood_cleanup_function(void *); * Used for scoring and to determine whether a file is admissible. */ struct mood_method { - /* The name of the method. */ + /** The name of the method. */ const char *name; /** Pointer to the mood parser. */ mood_parser *parser; @@ -266,6 +266,7 @@ static int add_item_score(const struct osl_row *row, struct mood_item *item, lon ret = get_afhi_of_row(row, &afhi); if (ret< 0) return ret; + free(afhi.info_string); /* don't need the tag info */ ret = get_audio_file_path_of_row(row, &path); if (ret< 0) return ret;