mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 22:54:01 +02: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
1 changed files with 1 additions and 1 deletions
|
@ -402,7 +402,7 @@ void RemoteSource::cancel() {
|
||||||
|
|
||||||
void RemoteSource::unload() {
|
void RemoteSource::unload() {
|
||||||
if (loaderValid()) {
|
if (loaderValid()) {
|
||||||
destroyLoaderDelayed();
|
delete base::take(_loader);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue