X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=mood.c;h=bbe3a8ae08c65748c1414b6f16fe91bda669b32e;hb=ee7c57f8dc4edfdc91f2f8657b6429d90ab13e79;hp=e9c5bd6e0e60ca55e5fc3bb4e67234bdf51fc193;hpb=173091699461dc4c08cb34bdb692cf001d8b578f;p=paraslash.git diff --git a/mood.c b/mood.c index e9c5bd6e..bbe3a8ae 100644 --- a/mood.c +++ b/mood.c @@ -16,11 +16,8 @@ #include "afh.h" #include "afs.h" #include "list.h" -#include "ipc.h" #include "mm.h" -#include "sideband.h" #include "mood.h" -#include "sched.h" /** * Contains statistical data of the currently admissible audio files. @@ -391,9 +388,7 @@ success: ret = 1; out: free_argv(argv); - if (ret >= 0) - return ret; - if (mi) { + if (mi && (ret < 0 || !mlpd->m)) { /* mi was not added to any list */ free(mi->parser_data); free(mi); }