sectionsd: fix memleak with unused events

Origin commit data
------------------
Commit: 3ea3f17460
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2013-04-14 (Sun, 14 Apr 2013)
This commit is contained in:
Stefan Seyfried
2013-04-14 12:56:42 +02:00
parent 02571e6695
commit bd245e45f6

View File

@@ -433,6 +433,7 @@ xprintf("addEvent: ch %012" PRIx64 " running %d (%s) got_CN %d\n", evt.get_chann
continue; continue;
/* else: keep the old event with the lower table_id */ /* else: keep the old event with the lower table_id */
unlockEvents(); unlockEvents();
delete eptr;
return; return;
} }
if ((*x)->times.begin()->startzeit >= end_time) if ((*x)->times.begin()->startzeit >= end_time)
@@ -448,6 +449,7 @@ xprintf("addEvent: ch %012" PRIx64 " running %d (%s) got_CN %d\n", evt.get_chann
dprintf("%s: don't replace 0x%012" PRIx64 ".%02x with 0x%012" PRIx64 ".%02x\n", dprintf("%s: don't replace 0x%012" PRIx64 ".%02x with 0x%012" PRIx64 ".%02x\n",
__func__, x_key, (*x)->table_id, e_key, e->table_id); __func__, x_key, (*x)->table_id, e_key, e->table_id);
unlockEvents(); unlockEvents();
delete eptr;
return; return;
} }
/* SRF special case: advertising is inserted with start time of /* SRF special case: advertising is inserted with start time of