diff options
author | Hannah von Reth <hannah.vonreth@owncloud.com> | 2022-07-06 10:11:25 +0300 |
---|---|---|
committer | Hannah von Reth <vonreth@kde.org> | 2022-07-06 14:06:45 +0300 |
commit | 268190f2c72dac70b55958941babfd0d92f231a1 (patch) | |
tree | b81167eedca31c5e4e7beacc113541044ac96392 /src | |
parent | 2b8235a9299df82b1bfbd7206874e4f1bb58d596 (diff) |
Fix potential crash when the log stream is destroyed
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/syncrunfilelog.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/syncrunfilelog.cpp b/src/gui/syncrunfilelog.cpp index 220c46e49..d46650d91 100644 --- a/src/gui/syncrunfilelog.cpp +++ b/src/gui/syncrunfilelog.cpp @@ -129,6 +129,8 @@ void SyncRunFileLog::finish() << endl; } *_out << tmp; + _out->flush(); + _out->reset(); _file->close(); } } |