aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs/Xserver/hw
diff options
context:
space:
mode:
authorUlrich Sibiller <uli42@gmx.de>2019-07-22 21:29:31 +0200
committerUlrich Sibiller <uli42@gmx.de>2019-08-06 21:57:32 +0200
commit4a826d30f911dbf4552b92192dbbb2d91d34e33f (patch)
treeb8f61f24ac111e49c36ca95f8ae6b0e2ced5704d /nx-X11/programs/Xserver/hw
parenta4700c9d0cde2003a8bf8dafdb3e9357d510206b (diff)
downloadnx-libs-4a826d30f911dbf4552b92192dbbb2d91d34e33f.tar.gz
nx-libs-4a826d30f911dbf4552b92192dbbb2d91d34e33f.tar.bz2
nx-libs-4a826d30f911dbf4552b92192dbbb2d91d34e33f.zip
Rootless.c: use SAFE_free and SAFE_XFree
Diffstat (limited to 'nx-X11/programs/Xserver/hw')
-rw-r--r--nx-X11/programs/Xserver/hw/nxagent/Rootless.c15
1 files changed, 6 insertions, 9 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Rootless.c b/nx-X11/programs/Xserver/hw/nxagent/Rootless.c
index c2611c194..6908799b6 100644
--- a/nx-X11/programs/Xserver/hw/nxagent/Rootless.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Rootless.c
@@ -281,10 +281,7 @@ Bool nxagentRootlessTreesMatch(void)
}
}
- if (children_return)
- {
- XFree(children_return);
- }
+ SAFE_XFree(children_return);
return treesMatch;
}
@@ -332,7 +329,7 @@ void nxagentRootlessRestack(unsigned long children[], unsigned int nchildren)
if (!ntoplevel)
{
- free(toplevel);
+ SAFE_free(toplevel);
return;
}
@@ -397,7 +394,7 @@ void nxagentRootlessRestack(unsigned long children[], unsigned int nchildren)
#endif
- free(toplevel);
+ SAFE_free(toplevel);
return;
}
@@ -818,7 +815,7 @@ int nxagentExportProperty(pWin, property, type, format, mode, nUnits, value)
if (freeMem)
{
- free(output);
+ SAFE_free(output);
}
return export;
@@ -1131,7 +1128,7 @@ void nxagentImportProperty(Window window,
if (freeMem)
{
- free(output);
+ SAFE_free(output);
}
return;
@@ -1183,7 +1180,7 @@ void nxagentRemovePropertyFromList(void)
nxagentPropertyList.last = NULL;
}
- free(tmp);
+ SAFE_free(tmp);
}
}