]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
eit: another title member fix
authorJaroslav Kysela <perex@perex.cz>
Wed, 7 Jun 2017 13:22:30 +0000 (15:22 +0200)
committerJaroslav Kysela <perex@perex.cz>
Wed, 7 Jun 2017 13:22:30 +0000 (15:22 +0200)
src/epggrab/module/eit.c

index 993cc7dbd9949ec17ee0735e8623f24abb4c5b62..d831873c00303cecab94ca07a8fc6bc61ae94d37 100644 (file)
@@ -532,8 +532,7 @@ static int _eit_process_event_one
     _ebc.dvb_eid = eid;
     _ebc.start = start;
     _ebc.stop = stop;
-    _ee.title = title_copy = ev.title;
-    ev.title = NULL;
+    _ee.title = title_copy = lang_str_copy(ev.title);
 
     ebc = epg_match_now_next(ch, &_ebc);
     tvhtrace(mod->subsys, "%s:  running state only ebc=%p", svc->s_dvb_svcname ?: "(null)", ebc);
@@ -627,7 +626,7 @@ tidy:
     }
   }
 
-  free(title_copy);
+  if (title_copy) lang_str_destroy(title_copy);
   return 0;
 }