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:
authorHannah von Reth <hannah.vonreth@owncloud.com>2022-07-06 10:11:25 +0300
committerHannah von Reth <vonreth@kde.org>2022-07-06 14:06:45 +0300
commit268190f2c72dac70b55958941babfd0d92f231a1 (patch)
treeb81167eedca31c5e4e7beacc113541044ac96392 /src
parent2b8235a9299df82b1bfbd7206874e4f1bb58d596 (diff)
Fix potential crash when the log stream is destroyed
Diffstat (limited to 'src')
-rw-r--r--src/gui/syncrunfilelog.cpp2
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();
}
}