diff --git a/td/telegram/FileReferenceManager.cpp b/td/telegram/FileReferenceManager.cpp index b8cde7b0c..0010af934 100644 --- a/td/telegram/FileReferenceManager.cpp +++ b/td/telegram/FileReferenceManager.cpp @@ -384,6 +384,8 @@ void FileReferenceManager::memory_cleanup() { elements_it++; } + + file_nodes_it++; } if (remove) {