api epg: fix memory leak
epggrab: fix memory leaks on shutdown for opentv/pyepg/xmltv