summaryrefslogtreecommitdiff
path: root/fluid/ExternalCodeEditor_UNIX.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'fluid/ExternalCodeEditor_UNIX.cxx')
-rw-r--r--fluid/ExternalCodeEditor_UNIX.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/fluid/ExternalCodeEditor_UNIX.cxx b/fluid/ExternalCodeEditor_UNIX.cxx
index 286076793..911fa3f7b 100644
--- a/fluid/ExternalCodeEditor_UNIX.cxx
+++ b/fluid/ExternalCodeEditor_UNIX.cxx
@@ -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]);
}