Fixed support for windows
This commit is contained in:
parent
b93239f6d4
commit
5523d0f68f
@ -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_) {
|
||||
|
Loading…
Reference in New Issue
Block a user