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
ebc2ea79
Commit
ebc2ea79
authored
Jul 22, 2019
by
Ulrich Sibiller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Events.c: safe some lines by calling SAFE_XFree
parent
b8411180
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
28 deletions
+7
-28
Events.c
nx-X11/programs/Xserver/hw/nxagent/Events.c
+7
-28
No files found.
nx-X11/programs/Xserver/hw/nxagent/Events.c
View file @
ebc2ea79
...
...
@@ -329,7 +329,7 @@ void nxagentRemoteWindowID(Window window, Bool newline)
else
if
(
winName
)
{
fprintf
(
stderr
,
"
\"
%s
\"
"
,
winName
);
XFree
(
winName
);
SAFE_
XFree
(
winName
);
}
#else
...
...
@@ -477,10 +477,7 @@ void nxagentRemoteWindowsTree(Window window, int level)
nxagentRemoteWindowsTree
(
childList
[
i
],
level
+
1
);
}
if
(
childList
)
{
XFree
((
char
*
)
childList
);
}
SAFE_XFree
((
char
*
)
childList
);
}
#endif
...
...
@@ -3128,10 +3125,7 @@ int nxagentCheckWindowConfiguration(XConfigureEvent* X)
#endif
}
if
(
children_return
)
{
XFree
(
children_return
);
}
SAFE_XFree
(
children_return
);
#if 0
fprintf(stderr, "nxagentCheckWindowConfiguration: Trees match: %s\n",
...
...
@@ -3513,11 +3507,7 @@ int nxagentHandleReparentNotify(XEvent* X)
result
=
XQueryTree
(
nxagentDisplay
,
w
,
&
root_return
,
&
parent_return
,
&
children_return
,
&
nchildren_return
);
if
(
children_return
)
{
XFree
(
children_return
);
children_return
=
NULL
;
}
SAFE_XFree
(
children_return
);
if
(
!
result
)
{
...
...
@@ -3555,11 +3545,7 @@ int nxagentHandleReparentNotify(XEvent* X)
#endif
}
if
(
children_return
)
{
XFree
(
children_return
);
children_return
=
NULL
;
}
SAFE_XFree
(
children_return
);
}
else
{
...
...
@@ -3623,11 +3609,7 @@ int nxagentHandleReparentNotify(XEvent* X)
result
=
XQueryTree
(
nxagentDisplay
,
w
,
&
rootReturn
,
&
parentReturn
,
&
childrenReturn
,
&
nchildrenReturn
);
if
(
childrenReturn
)
{
XFree
(
childrenReturn
);
childrenReturn
=
NULL
;
}
SAFE_XFree
(
childrenReturn
);
if
(
parentReturn
==
rootReturn
||
parentReturn
==
0
||
result
==
0
)
{
...
...
@@ -4024,10 +4006,7 @@ void nxagentHandleCollectPropertyEvent(XEvent *X)
#endif
}
if
(
pszReturnData
!=
NULL
)
{
XFree
(
pszReturnData
);
}
SAFE_XFree
(
pszReturnData
);
return
;
}
...
...
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