Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
L
libvncserver
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
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
rasky
libvncserver
Commits
61204490
Commit
61204490
authored
Dec 07, 2005
by
dscho
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
plug memory leaks
parent
6a7736f8
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
2 deletions
+25
-2
ChangeLog
ChangeLog
+7
-0
vncviewer.c
libvncclient/vncviewer.c
+17
-2
rfbclient.h
rfb/rfbclient.h
+1
-0
No files found.
ChangeLog
View file @
61204490
2005-12-07 Giampiero Giancipoli <giampiero.giancipoli@fredreggiane.com>
* libvncclient/vncviewer.c: plug memory leaks
2005-12-07 Johannes E. Schindelin <Johannes.Schindelin@gmx.de>
* client_examples/SDLvncviewer.c: use unicode to determine the keysym
(much more reliable than the old method)
2005-11-25 Karl Runge <runge@karlrunge.com>
2005-11-25 Karl Runge <runge@karlrunge.com>
* configure.ac: disable tightvnc-filetransfer if no libpthread.
* configure.ac: disable tightvnc-filetransfer if no libpthread.
add --without-pthread option.
add --without-pthread option.
...
...
libvncclient/vncviewer.c
View file @
61204490
...
@@ -159,11 +159,9 @@ rfbClient* rfbGetClient(int bitsPerSample,int samplesPerPixel,
...
@@ -159,11 +159,9 @@ rfbClient* rfbGetClient(int bitsPerSample,int samplesPerPixel,
client
->
decompStreamInited
=
FALSE
;
client
->
decompStreamInited
=
FALSE
;
#endif
#endif
#ifdef LIBVNCSERVER_HAVE_LIBZ
#ifdef LIBVNCSERVER_HAVE_LIBJPEG
#ifdef LIBVNCSERVER_HAVE_LIBJPEG
memset
(
client
->
zlibStreamActive
,
0
,
sizeof
(
rfbBool
)
*
4
);
memset
(
client
->
zlibStreamActive
,
0
,
sizeof
(
rfbBool
)
*
4
);
client
->
jpegSrcManager
=
NULL
;
client
->
jpegSrcManager
=
NULL
;
#endif
#endif
#endif
client
->
HandleCursorPos
=
DummyPoint
;
client
->
HandleCursorPos
=
DummyPoint
;
...
@@ -254,6 +252,23 @@ rfbBool rfbInitClient(rfbClient* client,int* argc,char** argv) {
...
@@ -254,6 +252,23 @@ rfbBool rfbInitClient(rfbClient* client,int* argc,char** argv) {
}
}
void
rfbClientCleanup
(
rfbClient
*
client
)
{
void
rfbClientCleanup
(
rfbClient
*
client
)
{
int
i
;
for
(
i
=
0
;
i
<
4
;
i
++
)
{
if
(
client
->
zlibStreamActive
[
i
]
==
TRUE
)
{
if
(
inflateEnd
(
&
client
->
zlibStream
[
i
])
!=
Z_OK
&&
client
->
zlibStream
[
i
].
msg
!=
NULL
)
rfbClientLog
(
"inflateEnd: %s
\n
"
,
client
->
zlibStream
[
i
].
msg
);
}
}
if
(
client
->
decompStreamInited
==
TRUE
)
{
if
(
inflateEnd
(
&
client
->
decompStream
)
!=
Z_OK
&&
client
->
decompStream
.
msg
!=
NULL
)
rfbClientLog
(
"inflateEnd: %s
\n
"
,
client
->
decompStream
.
msg
);
}
free
(
client
->
desktopName
);
free
(
client
->
serverHost
);
free
(
client
->
serverHost
);
free
(
client
);
free
(
client
);
}
}
rfb/rfbclient.h
View file @
61204490
...
@@ -273,6 +273,7 @@ extern int WaitForMessage(rfbClient* client,unsigned int usecs);
...
@@ -273,6 +273,7 @@ extern int WaitForMessage(rfbClient* client,unsigned int usecs);
/* vncviewer.c */
/* vncviewer.c */
rfbClient
*
rfbGetClient
(
int
bitsPerSample
,
int
samplesPerPixel
,
int
bytesPerPixel
);
rfbClient
*
rfbGetClient
(
int
bitsPerSample
,
int
samplesPerPixel
,
int
bytesPerPixel
);
rfbBool
rfbInitClient
(
rfbClient
*
client
,
int
*
argc
,
char
**
argv
);
rfbBool
rfbInitClient
(
rfbClient
*
client
,
int
*
argc
,
char
**
argv
);
/* rfbClientCleanup() does not touch client->frameBuffer */
void
rfbClientCleanup
(
rfbClient
*
client
);
void
rfbClientCleanup
(
rfbClient
*
client
);
#endif
#endif
...
...
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