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 91000a5 commit 0224fa9Copy full SHA for 0224fa9
src/io/fileview.cpp
@@ -490,7 +490,9 @@ void FileView::updatePath() {
490
}
491
492
void FileView::updateWatchedFiles() {
493
- delete this->watcher;
+ // 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();
496
497
if (!this->targetPath.isEmpty() && this->bWatchChanges) {
498
qCDebug(logFileView) << "Creating watcher for" << this << "at" << this->targetPath;
0 commit comments