File tree 1 file changed +3
-5
lines changed
1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -171,6 +171,8 @@ void WriteJob::slotWriteJobDone(QKeychain::Job *incomingJob)
171
171
qCWarning (lcKeychainChunk) << " Error while writing" << writeJob->key () << " chunk" << writeJob->errorString ();
172
172
_chunkBuffer.clear ();
173
173
}
174
+
175
+ writeJob->deleteLater ();
174
176
}
175
177
176
178
// write a chunk if there is any in the buffer
@@ -191,9 +193,7 @@ void WriteJob::slotWriteJobDone(QKeychain::Job *incomingJob)
191
193
192
194
// keep the limit
193
195
if (_chunkCount > KeychainChunk::MaxChunks) {
194
- qCWarning (lcKeychainChunk) << " Maximum chunk count exceeded while writing" << writeJob->key () << " chunk" << QString::number (index ) << " cutting off after" << QString::number (KeychainChunk::MaxChunks) << " chunks" ;
195
-
196
- writeJob->deleteLater ();
196
+ qCWarning (lcKeychainChunk) << " Maximum chunk count exceeded while writing chunk" << QString::number (index ) << " cutting off after" << QString::number (KeychainChunk::MaxChunks) << " chunks" ;
197
197
198
198
_chunkBuffer.clear ();
199
199
@@ -231,8 +231,6 @@ void WriteJob::slotWriteJobDone(QKeychain::Job *incomingJob)
231
231
deleteLater ();
232
232
}
233
233
}
234
-
235
- writeJob->deleteLater ();
236
234
}
237
235
238
236
/*
You can’t perform that action at this time.
0 commit comments