mirror of
https://github.com/Qz3rK/tdesktop.git
synced 2026-07-03 14:15:08 +02:00
Fix document unloading.
This commit is contained in:
@@ -595,9 +595,10 @@ void DocumentData::unload() {
|
||||
delete replyPreview.get();
|
||||
replyPreview = ImagePtr();
|
||||
}
|
||||
|
||||
ActiveCache().decrement(_data.size());
|
||||
_data.clear();
|
||||
if (!_data.isEmpty()) {
|
||||
ActiveCache().decrement(_data.size());
|
||||
_data.clear();
|
||||
}
|
||||
}
|
||||
|
||||
void DocumentData::automaticLoad(
|
||||
@@ -1358,6 +1359,7 @@ DocumentData::~DocumentData() {
|
||||
if (loading()) {
|
||||
destroyLoaderDelayed();
|
||||
}
|
||||
unload();
|
||||
}
|
||||
|
||||
QString DocumentData::ComposeNameString(
|
||||
|
||||
Reference in New Issue
Block a user