mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-18 07:07:08 +02:00
Fix memory leak in reply previews.
Regression was introduced in 2e7f4c2f21
.
Fixes #5237.
This commit is contained in:
parent
44496c7053
commit
f43752b3ad
1 changed files with 2 additions and 2 deletions
|
@ -131,9 +131,9 @@ ImagePtr PhotoData::makeReplyPreview(Data::FileOrigin origin) {
|
|||
if (thumb->toDelayedStorageImage()
|
||||
&& !full->isNull()
|
||||
&& !full->toDelayedStorageImage()) {
|
||||
return previewFromImage(full);
|
||||
replyPreview = previewFromImage(full);
|
||||
} else {
|
||||
return previewFromImage(thumb);
|
||||
replyPreview = previewFromImage(thumb);
|
||||
}
|
||||
}
|
||||
return replyPreview;
|
||||
|
|
Loading…
Add table
Reference in a new issue