dvr: remove bad LIST_REMOVE() call if entry has no channel

This commit is contained in:
Adam Sutton 2013-02-03 19:22:48 +00:00
parent cedd06468d
commit ce672631dc

View file

@ -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);