From: Adam Sutton Date: Sun, 3 Feb 2013 19:22:48 +0000 (+0000) Subject: dvr: remove bad LIST_REMOVE() call if entry has no channel X-Git-Tag: v3.5~25 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ce672631dc3158c8fadf1c4449e1b83f33efbe6c;p=thirdparty%2Ftvheadend.git dvr: remove bad LIST_REMOVE() call if entry has no channel --- diff --git a/src/dvr/dvr_db.c b/src/dvr/dvr_db.c index ee020d2eb..d9cfe026c 100644 --- a/src/dvr/dvr_db.c +++ b/src/dvr/dvr_db.c @@ -457,7 +457,8 @@ dvr_entry_remove(dvr_entry_t *de) gtimer_disarm(&de->de_timer); - LIST_REMOVE(de, de_channel_link); + if (de->de_channel) + LIST_REMOVE(de, de_channel_link); LIST_REMOVE(de, de_global_link); de->de_channel = NULL; free(de->de_channel_name);