aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs/Xserver/hw/nxagent/Utils.h
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2018-10-27 20:56:24 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2018-10-27 20:56:24 +0200
commit2804320164cc0c0cc16741ca89eec8ba860723f3 (patch)
tree20ef6b309e6ba307f1f4527a25111a0fb2df17e5 /nx-X11/programs/Xserver/hw/nxagent/Utils.h
parent2eb4a65ebd9aa04bd663fb9a7f0680fd2c56e990 (diff)
parent60bce146ee344d477add3a559eb9f2de155e4c09 (diff)
downloadnx-libs-2804320164cc0c0cc16741ca89eec8ba860723f3.tar.gz
nx-libs-2804320164cc0c0cc16741ca89eec8ba860723f3.tar.bz2
nx-libs-2804320164cc0c0cc16741ca89eec8ba860723f3.zip
Merge branch 'uli42-pr/clipboard_debug' into 3.6.x
Attributes GH PR #731: https://github.com/ArcticaProject/nx-libs/pull/731
Diffstat (limited to 'nx-X11/programs/Xserver/hw/nxagent/Utils.h')
-rw-r--r--nx-X11/programs/Xserver/hw/nxagent/Utils.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Utils.h b/nx-X11/programs/Xserver/hw/nxagent/Utils.h
index 63904e23b..c0ad03345 100644
--- a/nx-X11/programs/Xserver/hw/nxagent/Utils.h
+++ b/nx-X11/programs/Xserver/hw/nxagent/Utils.h
@@ -44,4 +44,6 @@ static inline const char * validateString(const char *str) {
return str ? str : "(null)";
}
+#define SAFE_XFree(what) do {if (what) {XFree(what); what = NULL;}} while (0)
+
#endif /* __Utils_H__ */