Compare commits

...

2 Commits

Author SHA1 Message Date
Andrea Cavalli
3f01f7ebbb Fix actor leak 2024-03-20 15:54:46 +01:00
Andrea Cavalli
a6b7429866 Code cleanup 2024-03-20 15:54:25 +01:00
4 changed files with 3 additions and 3 deletions

View File

@ -836,7 +836,7 @@ void AnimationsManager::send_update_saved_animations(bool from_database) {
if (animation->animated_thumbnail.file_id.is_valid()) {
new_saved_animation_file_ids.push_back(animation->animated_thumbnail.file_id);
}
}
}
std::sort(new_saved_animation_file_ids.begin(), new_saved_animation_file_ids.end());
if (new_saved_animation_file_ids != saved_animation_file_ids_) {
td_->file_manager_->change_files_source(get_saved_animations_file_source_id(), saved_animation_file_ids_,

View File

@ -15,7 +15,6 @@
#include "td/utils/common.h"
#include "td/utils/tl_helpers.h"
namespace td {
template <class StorerT>

View File

@ -15,7 +15,6 @@
#include "td/utils/common.h"
#include "td/utils/tl_helpers.h"
namespace td {
template <class StorerT>

View File

@ -3232,6 +3232,7 @@ void Td::dec_actor_refcnt() {
reset_manager(sponsored_message_manager_, "SponsoredMessageManager");
reset_manager(statistics_manager_, "StatisticsManager");
reset_manager(stickers_manager_, "StickersManager");
reset_manager(memory_manager_, "MemoryManager");
reset_manager(story_manager_, "StoryManager");
reset_manager(theme_manager_, "ThemeManager");
reset_manager(top_dialog_manager_, "TopDialogManager");
@ -3412,6 +3413,7 @@ void Td::clear() {
reset_actor(ActorOwn<Actor>(std::move(sponsored_message_manager_actor_)));
reset_actor(ActorOwn<Actor>(std::move(statistics_manager_actor_)));
reset_actor(ActorOwn<Actor>(std::move(stickers_manager_actor_)));
reset_actor(ActorOwn<Actor>(std::move(memory_manager_actor_)));
reset_actor(ActorOwn<Actor>(std::move(story_manager_actor_)));
reset_actor(ActorOwn<Actor>(std::move(theme_manager_actor_)));
reset_actor(ActorOwn<Actor>(std::move(top_dialog_manager_actor_)));