X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=mood.c;h=40228be515678effb04587f61d0fbc75acbc44c1;hp=315ef0cbdc61b7de1a3bbbd8f8683d7ab81d9c81;hb=12dc519663c785a3c0be60202d0825ddb8e8d02e;hpb=7649f22106cec2c6eb8bb10f279401e1af5451d0 diff --git a/mood.c b/mood.c index 315ef0cb..40228be5 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. @@ -363,9 +360,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); }