mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +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()
|
if (thumb->toDelayedStorageImage()
|
||||||
&& !full->isNull()
|
&& !full->isNull()
|
||||||
&& !full->toDelayedStorageImage()) {
|
&& !full->toDelayedStorageImage()) {
|
||||||
return previewFromImage(full);
|
replyPreview = previewFromImage(full);
|
||||||
} else {
|
} else {
|
||||||
return previewFromImage(thumb);
|
replyPreview = previewFromImage(thumb);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return replyPreview;
|
return replyPreview;
|
||||||
|
|
Loading…
Add table
Reference in a new issue