Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nx-libs
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dimbor
nx-libs
Commits
4421f787
Commit
4421f787
authored
Jul 23, 2019
by
Ulrich Sibiller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Atoms.c: use SAFE_XFree and SAFE_free macros
parent
7d25771d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
10 deletions
+6
-10
Atoms.c
nx-X11/programs/Xserver/hw/nxagent/Atoms.c
+6
-10
No files found.
nx-X11/programs/Xserver/hw/nxagent/Atoms.c
View file @
4421f787
...
...
@@ -43,6 +43,7 @@
#include "Screen.h"
#include "Options.h"
#include "Agent.h"
#include "Utils.h"
/*
* Set here the required log level.
...
...
@@ -53,11 +54,6 @@
#undef TEST
#undef DEBUG
#ifdef DEBUG
/* for validateString() */
#include "Utils.h"
#endif
/*
* These values should be moved in
* the option repository.
...
...
@@ -482,8 +478,8 @@ static int nxagentInitAtomMap(char **atomNameList, int count, Atom *atomsRet)
fprintf
(
stderr
,
"nxagentInitAtomMap: WARNING! XInternAtoms request failed.
\n
"
);
#endif
free
(
atom_list
);
free
(
name_list
);
SAFE_
free
(
atom_list
);
SAFE_
free
(
name_list
);
return
0
;
}
...
...
@@ -523,8 +519,8 @@ static int nxagentInitAtomMap(char **atomNameList, int count, Atom *atomsRet)
}
}
free
(
atom_list
);
free
(
name_list
);
SAFE_
free
(
atom_list
);
SAFE_
free
(
name_list
);
nxagentPrintAtomMapInfo
(
"nxagentInitAtomMap: Exiting"
);
...
...
@@ -794,7 +790,7 @@ Atom nxagentRemoteToLocalAtom(Atom remote)
#ifdef TEST
fprintf
(
stderr
,
"%s: remote [%d (%s)] -> local [%d]
\n
"
,
__func__
,
remote
,
string
,
local
);
#endif
XFree
(
string
);
SAFE_
XFree
(
string
);
return
local
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment