diff --git a/library/include/RemoteServer.h b/library/include/RemoteServer.h index d89b44959..7a6940bbe 100644 --- a/library/include/RemoteServer.h +++ b/library/include/RemoteServer.h @@ -65,6 +65,7 @@ namespace DFHack RPCService *owner, const char *name, int flags) : RPCFunctionBase(in, out), name(name), flags(flags), owner(owner), id(-1) {} + virtual ~ServerFunctionBase() {} RPCService *owner; int16_t id; diff --git a/library/modules/Maps.cpp b/library/modules/Maps.cpp index f1f40f19c..608068b8e 100644 --- a/library/modules/Maps.cpp +++ b/library/modules/Maps.cpp @@ -585,7 +585,7 @@ bool MapExtras::Block::Allocate() if (!block) return false; - delete item_counts; + delete[] item_counts; delete tiles; delete basemats; init(); diff --git a/library/modules/Screen.cpp b/library/modules/Screen.cpp index 8057d17a2..e9d19c931 100644 --- a/library/modules/Screen.cpp +++ b/library/modules/Screen.cpp @@ -195,7 +195,7 @@ bool Screen::drawBorder(const std::string &title) if (!gps) return false; int dimx = gps->dimx, dimy = gps->dimy; - Pen border(0xDB, 8); + Pen border('\xDB', 8); Pen text(0, 0, 7); Pen signature(0, 0, 8);