diff --git a/td/telegram/CountryInfoManager.cpp b/td/telegram/CountryInfoManager.cpp index a7842c556..bbb500d58 100644 --- a/td/telegram/CountryInfoManager.cpp +++ b/td/telegram/CountryInfoManager.cpp @@ -451,7 +451,7 @@ const CountryInfoManager::CountryList *CountryInfoManager::get_country_list(cons it = countries_.find(language_code); CHECK(it != countries_.end()) auto *country = it->second.get(); - load_country_list(language_code, country->hash, {}); + load_country_list(language_code, country->hash, Auto()); return country; } return nullptr; @@ -460,7 +460,7 @@ const CountryInfoManager::CountryList *CountryInfoManager::get_country_list(cons auto *country = it->second.get(); CHECK(country != nullptr); if (country->next_reload_time < Time::now()) { - load_country_list(language_code, country->hash, {}); + load_country_list(language_code, country->hash, Auto()); } return country; diff --git a/td/telegram/GroupCallManager.cpp b/td/telegram/GroupCallManager.cpp index fd7344d9a..02af634ef 100644 --- a/td/telegram/GroupCallManager.cpp +++ b/td/telegram/GroupCallManager.cpp @@ -181,6 +181,8 @@ struct GroupCallManager::PendingJoinRequest { GroupCallManager::GroupCallManager(Td *td, ActorShared<> parent) : td_(td), parent_(std::move(parent)) { } +GroupCallManager::~GroupCallManager() = default; + void GroupCallManager::tear_down() { parent_.reset(); } diff --git a/td/telegram/GroupCallManager.h b/td/telegram/GroupCallManager.h index 47495d791..ee90d9427 100644 --- a/td/telegram/GroupCallManager.h +++ b/td/telegram/GroupCallManager.h @@ -23,6 +23,11 @@ class Td; class GroupCallManager : public Actor { public: GroupCallManager(Td *td, ActorShared<> parent); + GroupCallManager(const GroupCallManager &) = delete; + GroupCallManager &operator=(const GroupCallManager &) = delete; + GroupCallManager(GroupCallManager &&) = delete; + GroupCallManager &operator=(GroupCallManager &&) = delete; + ~GroupCallManager() override; void create_group_call(ChannelId channel_id, Promise &&promise);