diff options
author | Oleksii Lysenko <lysenkoalexmail@gmail.com> | 2021-06-05 13:47:39 +0300 |
---|---|---|
committer | Hannah von Reth <vonreth@kde.org> | 2021-06-07 17:53:37 +0300 |
commit | 92284bb3160dc9e24ddc0005846cc93df152dcf8 (patch) | |
tree | d3f7f7634b8a626ea3d3af8b540688dc8e012d2c /src | |
parent | ff43c9394b45dd78106069ba89ae92f25abba158 (diff) |
Destroy UploadDevice instance in case it has not been opened in ReadOnly mode
Diffstat (limited to 'src')
-rw-r--r-- | src/libsync/propagateuploadtus.cpp | 1 |
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; |