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
8b74ff1c
Commit
8b74ff1c
authored
Jul 22, 2019
by
Ulrich Sibiller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Pixmap.c: use SAFE_free
parent
34bd0942
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
Pixmap.c
nx-X11/programs/Xserver/hw/nxagent/Pixmap.c
+7
-6
No files found.
nx-X11/programs/Xserver/hw/nxagent/Pixmap.c
View file @
8b74ff1c
...
...
@@ -49,6 +49,7 @@
#include "Events.h"
#include "Holder.h"
#include "Args.h"
#include "Utils.h"
#include "compext/Compext.h"
#include <nx/NXpack.h>
...
...
@@ -501,7 +502,7 @@ Bool nxagentDestroyPixmap(PixmapPtr pPixmap)
FreeResource
(
pPixmapPriv
->
mid
,
RT_NONE
);
}
free
(
pPixmap
);
SAFE_
free
(
pPixmap
);
return
True
;
}
...
...
@@ -1092,7 +1093,7 @@ Bool nxagentCheckPixmapIntegrity(PixmapPtr pPixmap)
{
FatalError
(
"XGetImage: Failed.
\n
"
);
free
(
data
);
SAFE_
free
(
data
);
return
False
;
}
...
...
@@ -1168,7 +1169,7 @@ Bool nxagentCheckPixmapIntegrity(PixmapPtr pPixmap)
XDestroyImage
(
image
);
}
free
(
data
);
SAFE_
free
(
data
);
}
else
{
...
...
@@ -1265,7 +1266,7 @@ void nxagentSynchronizeShmPixmap(DrawablePtr pDrawable, int xPict, int yPict,
nxagentPutImage
(
pDrawable
,
pGC
,
depth
,
xPict
,
yPict
,
width
,
height
,
0
,
format
,
data
);
free
(
data
);
SAFE_
free
(
data
);
}
#ifdef WARNING
else
...
...
@@ -1413,7 +1414,7 @@ FIXME: If the pixmap has a different depth from the window, the
fprintf
(
stderr
,
"nxagentPixmapOnShadowDisplay: XCreateImage failed.
\n
"
);
#endif
free
(
data
);
SAFE_
free
(
data
);
return
False
;
}
...
...
@@ -1572,7 +1573,7 @@ Bool nxagentFbOnShadowDisplay(void)
fprintf
(
stderr
,
"nxagentFbOnShadowDisplay: XCreateImage failed.
\n
"
);
#endif
free
(
data
);
SAFE_
free
(
data
);
return
False
;
}
...
...
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