Commit 4a826d30 authored by Ulrich Sibiller's avatar Ulrich Sibiller

Rootless.c: use SAFE_free and SAFE_XFree

parent a4700c9d
...@@ -281,10 +281,7 @@ Bool nxagentRootlessTreesMatch(void) ...@@ -281,10 +281,7 @@ Bool nxagentRootlessTreesMatch(void)
} }
} }
if (children_return) SAFE_XFree(children_return);
{
XFree(children_return);
}
return treesMatch; return treesMatch;
} }
...@@ -332,7 +329,7 @@ void nxagentRootlessRestack(unsigned long children[], unsigned int nchildren) ...@@ -332,7 +329,7 @@ void nxagentRootlessRestack(unsigned long children[], unsigned int nchildren)
if (!ntoplevel) if (!ntoplevel)
{ {
free(toplevel); SAFE_free(toplevel);
return; return;
} }
...@@ -397,7 +394,7 @@ void nxagentRootlessRestack(unsigned long children[], unsigned int nchildren) ...@@ -397,7 +394,7 @@ void nxagentRootlessRestack(unsigned long children[], unsigned int nchildren)
#endif #endif
free(toplevel); SAFE_free(toplevel);
return; return;
} }
...@@ -818,7 +815,7 @@ int nxagentExportProperty(pWin, property, type, format, mode, nUnits, value) ...@@ -818,7 +815,7 @@ int nxagentExportProperty(pWin, property, type, format, mode, nUnits, value)
if (freeMem) if (freeMem)
{ {
free(output); SAFE_free(output);
} }
return export; return export;
...@@ -1131,7 +1128,7 @@ void nxagentImportProperty(Window window, ...@@ -1131,7 +1128,7 @@ void nxagentImportProperty(Window window,
if (freeMem) if (freeMem)
{ {
free(output); SAFE_free(output);
} }
return; return;
...@@ -1183,7 +1180,7 @@ void nxagentRemovePropertyFromList(void) ...@@ -1183,7 +1180,7 @@ void nxagentRemovePropertyFromList(void)
nxagentPropertyList.last = NULL; nxagentPropertyList.last = NULL;
} }
free(tmp); SAFE_free(tmp);
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment