mirror of
https://github.com/telegramdesktop/tdesktop
synced 2024-12-27 00:53:22 +00:00
Fix crash in DocumentData destructor.
~DocumentData sometimes calls ~Image that calls RemoteSource::unload. It tries to schedule delayed loaded deletion and accesses Auth(). But ~DocumentData is called from ~Session, so Auth() is unaccessible.
This commit is contained in:
parent
fd4dedcbdf
commit
8c1e546123
@ -402,7 +402,7 @@ void RemoteSource::cancel() {
|
||||
|
||||
void RemoteSource::unload() {
|
||||
if (loaderValid()) {
|
||||
destroyLoaderDelayed();
|
||||
delete base::take(_loader);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user