diff --git a/td/telegram/AnimationsManager.cpp b/td/telegram/AnimationsManager.cpp index a741ec14..7ef15358 100644 --- a/td/telegram/AnimationsManager.cpp +++ b/td/telegram/AnimationsManager.cpp @@ -225,7 +225,7 @@ FileId AnimationsManager::on_get_animation(unique_ptr new_animation, const AnimationsManager::Animation *AnimationsManager::get_animation(FileId file_id) const { auto animation = animations_.find(file_id); if (animation == animations_.end()) { - return Animation{}; + return make_unique().get(); } CHECK(animation->second->file_id == file_id); diff --git a/td/telegram/AudiosManager.cpp b/td/telegram/AudiosManager.cpp index 0389f819..ce847d12 100644 --- a/td/telegram/AudiosManager.cpp +++ b/td/telegram/AudiosManager.cpp @@ -94,7 +94,7 @@ FileId AudiosManager::on_get_audio(unique_ptr