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
a9819436
Commit
a9819436
authored
Jul 22, 2019
by
Ulrich Sibiller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Drawable.c: use SAFE_free
parent
43e300ec
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
Drawable.c
nx-X11/programs/Xserver/hw/nxagent/Drawable.c
+6
-5
No files found.
nx-X11/programs/Xserver/hw/nxagent/Drawable.c
View file @
a9819436
...
...
@@ -42,6 +42,7 @@
#include "Pixels.h"
#include "Reconnect.h"
#include "GCOps.h"
#include "Utils.h"
#include "compext/Compext.h"
...
...
@@ -365,7 +366,7 @@ int nxagentSynchronizeDrawableData(DrawablePtr pDrawable, unsigned int breakMask
success
=
nxagentSynchronizeRegion
(
pDrawable
,
NullRegion
,
breakMask
,
owner
);
nxagentSynchronizeDrawableDataEnd:
free
(
data
);
SAFE_
free
(
data
);
return
success
;
}
...
...
@@ -861,7 +862,7 @@ int nxagentSynchronizeRegion(DrawablePtr pDrawable, RegionPtr pRegion, unsigned
#endif
}
free
(
cmpData
);
SAFE_
free
(
cmpData
);
}
}
else
...
...
@@ -1058,7 +1059,7 @@ nxagentSynchronizeRegionFree:
nxagentFreeRegion
(
pDrawable
,
clipRegion
);
}
free
(
data
);
SAFE_
free
(
data
);
RegionUninit
(
&
exposeRegion
);
...
...
@@ -2158,7 +2159,7 @@ unsigned long nxagentGetColor(DrawablePtr pDrawable, int xPixel, int yPixel)
fprintf
(
stderr
,
"nxagentGetColor: WARNING! Failed to create the XImage.
\n
"
);
#endif
free
(
data
);
SAFE_
free
(
data
);
return
-
1
;
}
...
...
@@ -2384,7 +2385,7 @@ void nxagentFillRemoteRegion(DrawablePtr pDrawable, RegionPtr pRegion)
XFillRectangles
(
nxagentDisplay
,
nxagentDrawable
(
pDrawable
),
nxagentGC
(
pGC
),
pRects
,
nrects
);
free
(
pRects
);
SAFE_
free
(
pRects
);
}
}
...
...
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