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
d4465b71
Commit
d4465b71
authored
Dec 14, 2017
by
Mike Gabriel
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Xserver/hw/nxagent/compext: Xfree -> free and Xmalloc -> malloc.
parent
8cca3f09
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
12 deletions
+5
-12
Bitmap.c
nx-X11/programs/Xserver/hw/nxagent/compext/Bitmap.c
+1
-1
Compext.c
nx-X11/programs/Xserver/hw/nxagent/compext/Compext.c
+0
-0
Compext.h
nx-X11/programs/Xserver/hw/nxagent/compext/Compext.h
+0
-7
Z.c
nx-X11/programs/Xserver/hw/nxagent/compext/Z.c
+4
-4
No files found.
nx-X11/programs/Xserver/hw/nxagent/compext/Bitmap.c
View file @
d4465b71
...
...
@@ -73,7 +73,7 @@ char *BitmapCompressData(XImage *image, unsigned int *size)
*
size
=
image
->
width
*
image
->
height
*
3
;
data
=
X
malloc
(
*
size
);
data
=
malloc
(
*
size
);
if
(
data
==
NULL
)
{
...
...
nx-X11/programs/Xserver/hw/nxagent/compext/Compext.c
View file @
d4465b71
This diff is collapsed.
Click to expand it.
nx-X11/programs/Xserver/hw/nxagent/compext/Compext.h
View file @
d4465b71
...
...
@@ -39,13 +39,6 @@ extern "C" {
#include <nx/NXvars.h>
/*
* All the NX code should use these.
*/
#define Xmalloc(size) malloc((size))
#define Xfree(ptr) free((ptr))
/*
* Maximum number of supported pack methods.
*/
...
...
nx-X11/programs/Xserver/hw/nxagent/compext/Z.c
View file @
d4465b71
...
...
@@ -67,7 +67,7 @@ char *ZCompressData(const char *plainData, unsigned int plainSize, int threshold
*
compressedSize
=
plainSize
+
(
plainSize
/
1000
)
+
12
+
1
;
compressedData
=
X
malloc
(
*
compressedSize
);
compressedData
=
malloc
(
*
compressedSize
);
if
(
compressedData
==
NULL
)
{
...
...
@@ -129,7 +129,7 @@ char *ZCompressData(const char *plainData, unsigned int plainSize, int threshold
plainSize
,
zError
(
result
));
#endif
X
free
(
compressedData
);
free
(
compressedData
);
*
compressedSize
=
0
;
...
...
@@ -245,7 +245,7 @@ int ZInitEncoder()
{
int
result
;
zStream
=
X
malloc
(
sizeof
(
z_stream
));
zStream
=
malloc
(
sizeof
(
z_stream
));
if
(
zStream
==
NULL
)
{
...
...
@@ -300,7 +300,7 @@ int ZResetEncoder()
#endif
}
X
free
(
zStream
);
free
(
zStream
);
}
zInitialized
=
0
;
...
...
dimbor
@dimbor
mentioned in commit
4fb49543
·
Jan 26, 2018
mentioned in commit
4fb49543
mentioned in commit 4fb495432bef33de1f39f2b999054c3712444246
Toggle commit list
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