epggrab: channels - fix another leaks in epggrab_channel_destroy()

This commit is contained in:
Jaroslav Kysela 2014-10-21 13:44:41 +02:00
parent ace1b95fd1
commit 15db6d188a
2 changed files with 5 additions and 3 deletions

View file

@ -233,6 +233,8 @@ void epggrab_channel_destroy
while ((ecl = LIST_FIRST(&ec->channels)) != NULL)
epggrab_channel_link_delete(ecl, delconf);
RB_REMOVE(tree, ec, link);
free(ec->name);
free(ec->icon);
free(ec->id);
free(ec);
}

View file

@ -200,9 +200,9 @@ static void _epggrab_module_channel_load
htsmsg_t *a;
htsmsg_field_t *f;
channel_t *ch;
epggrab_channel_t *egc
= epggrab_channel_find(mod->channels, id, 1, &save, mod);
epggrab_channel_t *egc;
egc = epggrab_channel_find(mod->channels, id, 1, &save, mod);
if ((str = htsmsg_get_str(m, "name")))
egc->name = strdup(str);