[server] Add missing SAFE_DELETE macro

This commit is contained in:
RD42 2024-01-20 23:18:34 +08:00
parent be23b93702
commit d3fb442d5d

View File

@ -20,6 +20,7 @@
#define DEFAULT_LISTEN_PORT 8192
#define ARRAY_SIZE(a) ( sizeof((a)) / sizeof(*(a)) )
#define SAFE_DELETE(p) { if (p) { delete (p); (p) = NULL; } }
// ------------
// VERSION INFO