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
66eea14c
Commit
66eea14c
authored
Jan 07, 2020
by
Ulrich Sibiller
Committed by
Mike Gabriel
May 07, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nxagent: Free atom map on termination
parent
18439f55
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
2 deletions
+17
-2
Atoms.c
nx-X11/programs/Xserver/hw/nxagent/Atoms.c
+13
-2
Atoms.h
nx-X11/programs/Xserver/hw/nxagent/Atoms.h
+2
-0
NXdispatch.c
nx-X11/programs/Xserver/hw/nxagent/NXdispatch.c
+2
-0
No files found.
nx-X11/programs/Xserver/hw/nxagent/Atoms.c
View file @
66eea14c
...
...
@@ -364,7 +364,7 @@ int nxagentQueryAtoms(ScreenPtr pScreen)
typedef
struct
{
Atom
local
;
XlibAtom
remote
;
c
onst
c
har
*
string
;
char
*
string
;
int
length
;
}
AtomMap
;
...
...
@@ -397,7 +397,7 @@ static void nxagentExpandCache(void)
static
void
nxagentWriteAtom
(
Atom
local
,
XlibAtom
remote
,
const
char
*
string
)
{
c
onst
c
har
*
s
=
strdup
(
string
);
char
*
s
=
strdup
(
string
);
#ifdef WARNING
if
(
s
==
NULL
)
...
...
@@ -436,6 +436,17 @@ void nxagentResetAtomMap(void)
nxagentPrintAtomMapInfo
(
"nxagentResetAtomMap: Exiting"
);
}
void
nxagentFreeAtomMap
(
void
)
{
for
(
unsigned
int
i
=
0
;
i
<
privLastAtom
;
i
++
)
{
SAFE_free
(
privAtomMap
[
i
].
string
);
}
SAFE_free
(
privAtomMap
);
privLastAtom
=
privAtomMapSize
=
0
;
}
/*
* Init map.
* Initializing the atomNameList all in one.
...
...
nx-X11/programs/Xserver/hw/nxagent/Atoms.h
View file @
66eea14c
...
...
@@ -51,6 +51,8 @@ int nxagentQueryAtoms(ScreenPtr pScreen);
void
nxagentResetAtomMap
(
void
);
void
nxagentFreeAtomMap
(
void
);
void
nxagentWMDetect
(
void
);
#ifdef XlibAtom
...
...
nx-X11/programs/Xserver/hw/nxagent/NXdispatch.c
View file @
66eea14c
...
...
@@ -580,6 +580,8 @@ Reply Total Cached Bits In Bits Out Bits/Reply Ratio
NXShadowDestroy
();
}
saveAgentState
(
"TERMINATED"
);
nxagentFreeAtomMap
();
#endif
/* NXAGENT_SERVER */
KillAllClients
();
...
...
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