2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 22:46:10 +00:00

Fix memory clearing from photos/documents.

This commit is contained in:
John Preston
2018-04-07 11:01:32 +04:00
parent 9895b45293
commit e5b2e0a6b5
6 changed files with 42 additions and 1 deletions

View File

@@ -1628,6 +1628,7 @@ namespace {
int64 nowImageCacheSize = imageCacheSize();
if (nowImageCacheSize > serviceImageCacheSize + MemoryForImageCache) {
App::forgetMedia();
Auth().data().forgetMedia();
serviceImageCacheSize = imageCacheSize();
}
}