mirror of https://github.com/procxx/kepka.git
Fix memory leak in reply previews.
Regression was introduced in 2e7f4c2f21
.
Fixes #5237.
This commit is contained in:
parent
44496c7053
commit
f43752b3ad
|
@ -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…
Reference in New Issue