summaryrefslogtreecommitdiff
path: root/test/editor.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'test/editor.cxx')
-rw-r--r--test/editor.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/editor.cxx b/test/editor.cxx
index e8c1f42ae..d489c090b 100644
--- a/test/editor.cxx
+++ b/test/editor.cxx
@@ -616,7 +616,7 @@ void close_cb(Fl_Widget*, void* v) {
w->hide();
textbuf->remove_modify_callback(changed_cb, w);
- delete w;
+ Fl::delete_widget(w);
num_windows--;
if (!num_windows) exit(0);
}