aboutsummaryrefslogtreecommitdiff
path: root/nx-X11
diff options
context:
space:
mode:
authorUlrich Sibiller <uli42@gmx.de>2019-07-23 20:08:16 +0200
committerUlrich Sibiller <uli42@gmx.de>2019-08-06 21:57:32 +0200
commit1330167fa2026e4d2ad1d470ebfde9977d131ab3 (patch)
tree059171d4d185acc07ba9328a1068bc723e5d2462 /nx-X11
parent360cb5dd9c307be05dfeee93b5303e257b389f1c (diff)
downloadnx-libs-1330167fa2026e4d2ad1d470ebfde9977d131ab3.tar.gz
nx-libs-1330167fa2026e4d2ad1d470ebfde9977d131ab3.tar.bz2
nx-libs-1330167fa2026e4d2ad1d470ebfde9977d131ab3.zip
Utils.h: add SAFE_free macro
Diffstat (limited to 'nx-X11')
-rw-r--r--nx-X11/programs/Xserver/hw/nxagent/Utils.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Utils.h b/nx-X11/programs/Xserver/hw/nxagent/Utils.h
index c0ad03345..0aebda839 100644
--- a/nx-X11/programs/Xserver/hw/nxagent/Utils.h
+++ b/nx-X11/programs/Xserver/hw/nxagent/Utils.h
@@ -45,5 +45,6 @@ static inline const char * validateString(const char *str) {
}
#define SAFE_XFree(what) do {if (what) {XFree(what); what = NULL;}} while (0)
+#define SAFE_free(what) do {free(what); what = NULL;} while (0)
#endif /* __Utils_H__ */