mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-08 10:26:37 +00:00
Possibly fix a crash in image loader.
This commit is contained in:
@@ -325,6 +325,8 @@ void RemoteSource::loadLocal() {
|
||||
void RemoteSource::setImageBytes(const QByteArray &bytes) {
|
||||
if (bytes.isEmpty()) {
|
||||
return;
|
||||
} else if (loaderValid()) {
|
||||
unload();
|
||||
}
|
||||
_loader = createLoader({}, LoadFromLocalOnly, true);
|
||||
_loader->finishWithBytes(bytes);
|
||||
|
Reference in New Issue
Block a user