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
6378d5ad
Commit
6378d5ad
authored
Jul 22, 2019
by
Ulrich Sibiller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
GC.c: use SAFE_free
parent
a9819436
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
GC.c
nx-X11/programs/Xserver/hw/nxagent/GC.c
+9
-9
No files found.
nx-X11/programs/Xserver/hw/nxagent/GC.c
View file @
6378d5ad
...
...
@@ -61,6 +61,7 @@ is" without express or implied warranty.
#include "Trap.h"
#include "Screen.h"
#include "Pixels.h"
#include "Utils.h"
#include "../../fb/fb.h"
...
...
@@ -694,7 +695,7 @@ void nxagentChangeClip(GCPtr pGC, int type, void * pValue, int nRects)
XSetClipRectangles
(
nxagentDisplay
,
nxagentGC
(
pGC
),
pGC
->
clipOrg
.
x
,
pGC
->
clipOrg
.
y
,
pRects
,
nRects
,
Unsorted
);
free
((
char
*
)
pRects
);
SAFE_free
(
pRects
);
}
break
;
...
...
@@ -778,7 +779,7 @@ void nxagentChangeClip(GCPtr pGC, int type, void * pValue, int nRects)
pGC
->
clientClip
=
(
void
*
)
RegionFromRects
(
nRects
,
(
xRectangle
*
)
pValue
,
type
);
free
(
pValue
);
SAFE_
free
(
pValue
);
pValue
=
pGC
->
clientClip
;
...
...
@@ -912,9 +913,8 @@ static void nxagentFreeGCRec(struct nxagentGCRec *t)
(
void
*
)
t
,
(
void
*
)
t
->
gc
);
#endif
free
(
t
->
gc
);
free
(
t
);
SAFE_free
(
t
->
gc
);
SAFE_free
(
t
);
}
static
void
nxagentRestoreGCRec
(
struct
nxagentGCRec
*
t
)
...
...
@@ -924,11 +924,11 @@ static void nxagentRestoreGCRec(struct nxagentGCRec *t)
(
void
*
)
t
,
(
void
*
)
t
->
gc
);
#endif
free
(
nxagentGC
(
t
->
pGC
));
SAFE_
free
(
nxagentGC
(
t
->
pGC
));
nxagentGC
(
t
->
pGC
)
=
t
->
gc
;
free
(
t
);
SAFE_
free
(
t
);
}
static
void
nxagentAddGCToList
(
GCPtr
pGC
)
...
...
@@ -1303,7 +1303,7 @@ static void nxagentReconnectClip(GCPtr pGC, int type, void * pValue, int nRects)
XSetClipRectangles
(
nxagentDisplay
,
nxagentGC
(
pGC
),
pGC
->
clipOrg
.
x
,
pGC
->
clipOrg
.
y
,
pRects
,
nRects
,
Unsorted
);
free
((
char
*
)
pRects
);
SAFE_free
(
pRects
);
}
else
{
...
...
@@ -1374,7 +1374,7 @@ static void nxagentReconnectClip(GCPtr pGC, int type, void * pValue, int nRects)
pGC
->
clientClip
=
(
void
*
)
RegionFromRects
(
nRects
,
(
xRectangle
*
)
pValue
,
type
);
free
(
pValue
);
SAFE_
free
(
pValue
);
pValue
=
pGC
->
clientClip
;
type
=
CT_REGION
;
...
...
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