mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-03-01 03:50:43 +00:00
Clear possible crash in media viewer.
This commit is contained in:
parent
78fedce2d5
commit
acd76fc97b
@ -4763,6 +4763,7 @@ void OverlayWidget::clearBeforeHide() {
|
||||
_userPhotosData = std::nullopt;
|
||||
_collage = nullptr;
|
||||
_collageData = std::nullopt;
|
||||
clearStreaming();
|
||||
assignMediaPointer(nullptr);
|
||||
_preloadPhotos.clear();
|
||||
_preloadDocuments.clear();
|
||||
|
Loading…
Reference in New Issue
Block a user