summaryrefslogtreecommitdiff
path: root/src/utils
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/delete2.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/utils/delete2.h b/src/utils/delete2.h
index 0bccaf2c3..f9fbb7f02 100644
--- a/src/utils/delete2.h
+++ b/src/utils/delete2.h
@@ -27,4 +27,10 @@
var = nullptr;\
}
+#define delete2Arr(var) \
+ {\
+ delete []var;\
+ var = nullptr;\
+ }
+
#endif // UTILS_DELETE2_H