Index: src/transports.c =================================================================== --- src/transports.c (revision 5043) +++ src/transports.c (working copy) @@ -1,6 +1,6 @@ /* * tvheadend, transport and subscription functions - * Copyright (C) 2007 Andreas Öman + * Copyright (C) 2007 Andreas �man * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -47,6 +47,7 @@ #include "atomic.h" #include "dvb/dvb.h" #include "htsp.h" +#include "settings.h" #define TRANSPORT_HASH_WIDTH 101 @@ -437,7 +438,10 @@ lock_assert(&global_lock); serviceprobe_delete(t); - + if(t->tht_type==TRANSPORT_IPTV){ + if(t->tht_ch != NULL) channel_delete(t->tht_ch); + hts_settings_remove("iptvtransports/%s",t->tht_identifier); + } while((s = LIST_FIRST(&t->tht_subscriptions)) != NULL) { subscription_unlink_transport(s, SM_CODE_SOURCE_DELETED); } @@ -454,7 +458,7 @@ transport_stop(t); t->tht_status = TRANSPORT_ZOMBIE; - + free(t->tht_identifier); free(t->tht_svcname); free(t->tht_provider);