kotatogram-desktop/Telegram/SourceFiles/info
John Preston f671897a4d Fix a possible crash in Go to Message on macOS.
Fixes #26273.

This crash happens with a very deep stack trace that is caused by
destroying shared media layer on Go to Message click, which starts
destroying Media::ListWidget, which destroys Ui::PopupMenu, which is
a window, so when it destructs it triggers a sync repaint of the main
window (by a system event), which tries to render the new messages slice,
which starts a photo download, which calls an item repaint in Data::Session,
and the semi-destroyed Media::ListWidget is still subscribed to the
item repaint requests and tries to repaint and crashes there.

The fix is to destroy all session-related subscriptions before the PopupMenu.
2023-05-24 20:22:41 +04:00
..
channels
common_groups
downloads
media Fix a possible crash in Go to Message on macOS. 2023-05-24 20:22:41 +04:00
members
polls
profile
settings
userpic
info.style
info_content_widget.cpp
info_content_widget.h
info_controller.cpp
info_controller.h
info_layer_widget.cpp
info_layer_widget.h
info_memento.cpp
info_memento.h
info_section_widget.cpp
info_section_widget.h
info_top_bar.cpp
info_top_bar.h
info_wrap_widget.cpp
info_wrap_widget.h