Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/owncloud/client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorOleksii Lysenko <lysenkoalexmail@gmail.com>2021-06-05 13:47:39 +0300
committerHannah von Reth <vonreth@kde.org>2021-06-07 17:53:37 +0300
commit92284bb3160dc9e24ddc0005846cc93df152dcf8 (patch)
treed3f7f7634b8a626ea3d3af8b540688dc8e012d2c /src
parentff43c9394b45dd78106069ba89ae92f25abba158 (diff)
Destroy UploadDevice instance in case it has not been opened in ReadOnly mode
Diffstat (limited to 'src')
-rw-r--r--src/libsync/propagateuploadtus.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libsync/propagateuploadtus.cpp b/src/libsync/propagateuploadtus.cpp
index f635c0bc3..d280e2dda 100644
--- a/src/libsync/propagateuploadtus.cpp
+++ b/src/libsync/propagateuploadtus.cpp
@@ -70,6 +70,7 @@ UploadDevice *PropagateUploadFileTUS::prepareDevice(const quint64 &chunkSize)
}
// Soft error because this is likely caused by the user modifying his files while syncing
abortWithError(SyncFileItem::SoftError, device->errorString());
+ delete device;
return nullptr;
}
return device;