diff --git a/Telegram/SourceFiles/ui/image/image_source.cpp b/Telegram/SourceFiles/ui/image/image_source.cpp index f52d4e2064..88e7f4d79e 100644 --- a/Telegram/SourceFiles/ui/image/image_source.cpp +++ b/Telegram/SourceFiles/ui/image/image_source.cpp @@ -402,7 +402,7 @@ void RemoteSource::cancel() { void RemoteSource::unload() { if (loaderValid()) { - destroyLoaderDelayed(); + delete base::take(_loader); } }