We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8be18c0 commit 20c3da0Copy full SHA for 20c3da0
src/io/fileview.cpp
@@ -492,7 +492,10 @@ void FileView::updatePath() {
492
void FileView::updateWatchedFiles() {
493
// If inotify events are sent to the watcher after deletion and deleteLater
494
// isn't used, a use after free in the QML engine will occur.
495
- if (this->watcher) this->watcher->deleteLater();
+ if (this->watcher) {
496
+ this->watcher->deleteLater();
497
+ this->watcher = nullptr;
498
+ }
499
500
if (!this->targetPath.isEmpty() && this->bWatchChanges) {
501
qCDebug(logFileView) << "Creating watcher for" << this << "at" << this->targetPath;
0 commit comments