X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=mood.c;h=57f3f00ab5b4e11ee4f9d78bb82f683eed361092;hp=590a68fb4d6e0ad3dedfd9efd6683bf69a7d9ec1;hb=002731cd3938f3be6b71651e56c062af1adcdec0;hpb=49bd626084bf5f48e4d80075258b6da4703752cf diff --git a/mood.c b/mood.c index 590a68fb..57f3f00a 100644 --- a/mood.c +++ b/mood.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2007-2008 Andre Noll + * Copyright (C) 2007-2009 Andre Noll * * Licensed under the GPL v2. For licencing details see COPYING. */ @@ -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; @@ -561,8 +562,8 @@ out: /** * Check all moods for syntax errors. * + * \param fd The afs socket. * \param query Unused. - * \param result: Contains check messages. */ void mood_check_callback(int fd, __a_unused const struct osl_object *query) {