Files
AyuGramDesktop/Telegram/SourceFiles/boxes
23rd 04dbbab4a1 Replaced vector container for SendFilesBox::Block with deque.
SendFilesBox::Block (aka Block) passes action
callbacks to AlbumPreview / SingleMediaPreview.
These callbacks access Block::_items through a captured "this" pointer.

With std::vector<Block>, _blocks.emplace_back() may reallocate and
move existing Block objects. Callbacks already stored inside previews
then keep a dangling Block*, and a later context-menu action can crash
when reading this->_items.

Switched _blocks to std::deque<Block> so existing element addresses stay
stable on std::deque::push_back, keeping callback captures valid
for previews.
2026-02-28 19:07:08 +04:00
..
2025-12-22 17:56:55 +04:00
2025-12-15 22:51:14 +04:00
2025-12-22 17:56:55 +04:00
2025-12-05 20:11:54 +04:00
2025-12-22 17:56:55 +04:00