opentv: ensure that we can't double delete table

THis might happen if registering that the scan is complete removes
the table.
This commit is contained in:
Adam Sutton 2013-09-05 15:18:07 +01:00
parent d9b710ecf9
commit e087621fed

View file

@ -478,15 +478,16 @@ done:
mt2->mt_destroy = opentv_status_destroy;
}
}
mpegts_table_destroy(mt);
} else {
tvhinfo(mt->mt_name, "summaries complete");
mpegts_table_destroy(mt);
if (ota)
epggrab_ota_complete((epggrab_module_ota_t*)mod, ota);
}
} else {
mpegts_table_destroy(mt);
}
/* Remove table handler */
mpegts_table_destroy(mt);
}
return 0;