mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 14:45:14 +00:00
Fix memory leak in reply previews.
Regression was introduced in 2e7f4c2f21
.
Fixes #5237.
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user