]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
epggrab: channels - fix another leaks in epggrab_channel_destroy()
authorJaroslav Kysela <perex@perex.cz>
Tue, 21 Oct 2014 11:44:41 +0000 (13:44 +0200)
committerJaroslav Kysela <perex@perex.cz>
Tue, 21 Oct 2014 11:44:41 +0000 (13:44 +0200)
src/epggrab/channel.c
src/epggrab/module.c

index 902dbed6344c0cc17c8f2f339ec21c02c32148e9..afff7205c8739fcf68f192d5b648aa1d55fd9946 100644 (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);
 }
index ae48180a453caa4b6ec931f5aedc4371e5cba3d2..dc16392c714ecfc73f05f88c7995314a137c4f96 100644 (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);