diff --git a/src/zapit/include/zapit/bouquets.h b/src/zapit/include/zapit/bouquets.h index 1dc8253db..9b081a87d 100644 --- a/src/zapit/include/zapit/bouquets.h +++ b/src/zapit/include/zapit/bouquets.h @@ -75,6 +75,7 @@ class CBouquetManager public: CBouquetManager() { remainChannels = NULL; }; + ~CBouquetManager(); class ChannelIterator { private: diff --git a/src/zapit/src/bouquets.cpp b/src/zapit/src/bouquets.cpp index 2f24dd316..3da8edcbf 100644 --- a/src/zapit/src/bouquets.cpp +++ b/src/zapit/src/bouquets.cpp @@ -179,6 +179,11 @@ size_t CZapitBouquet::recModeTVSize(const transponder_id_t transponder_id) return size; } +CBouquetManager::~CBouquetManager() +{ + clearAll(); +} + void CBouquetManager::writeBouquetHeader(FILE * bouq_fd, uint32_t i, const char * bouquetName) { //printf("[bouquets] writing bouquet header: %s\n", bouquetName);