Fixed support for windows

This commit is contained in:
andreacavalli 2020-08-19 15:38:39 +02:00
parent b93239f6d4
commit 5523d0f68f

View File

@ -5165,7 +5165,9 @@ void Td::on_request(uint64 id, td_api::optimizeStorage &request) {
animations_manager_->memory_cleanup();
file_manager_->memory_cleanup();
#ifdef __linux__
malloc_trim(0);
#endif
std::vector<FileType> file_types;
for (auto &file_type : request.file_types_) {