FLUID: close communications pipe

This commit is contained in:
Matthias Melcher
2023-01-27 12:08:08 +01:00
parent 873d355ec2
commit 1881324145
+4 -1
View File
@@ -76,7 +76,10 @@ ExternalCodeEditor::~ExternalCodeEditor() {
(void*)this, (long)pid_);
close_editor(); // close editor, delete tmp file
set_filename(0); // free()s filename
if (alert_pipe_[0] != -1) ::close(alert_pipe_[0]);
if (alert_pipe_[0] != -1) {
Fl::remove_fd(alert_pipe_[0]);
::close(alert_pipe_[0]);
}
if (alert_pipe_[1] != -1) ::close(alert_pipe_[1]);
}