summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/newgrf_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/newgrf_gui.cpp b/src/newgrf_gui.cpp
index a5c4a45cb..095b6d5dc 100644
--- a/src/newgrf_gui.cpp
+++ b/src/newgrf_gui.cpp
@@ -721,7 +721,7 @@ struct NewGRFWindow : public Window {
if (c == this->sel) {
*pc = c->next;
- free(c);
+ delete c;
break;
}
}