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
11deabd3
Commit
11deabd3
authored
Apr 25, 2002
by
dscho
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x11vnc memleaks patched
parent
efa12fa9
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
2 deletions
+13
-2
Makefile
Makefile
+1
-1
x11vnc.c
x11vnc.c
+12
-1
No files found.
Makefile
View file @
11deabd3
...
...
@@ -68,7 +68,7 @@ OSXvnc-server: mac.o libvncserver.a
x11vnc.o
:
x11vnc.c 1instance.c
x11vnc
:
x11vnc.o libvncserver.a
$(CC)
-o
x11vnc x11vnc.o
$(LIBS)
$(XLIBS)
$(CC)
-
g
-
o
x11vnc x11vnc.o
$(LIBS)
$(XLIBS)
x11vnc_static
:
x11vnc.o libvncserver.a
$(CC)
-o
x11vnc_static x11vnc.o libvncserver.a /usr/lib/libz.a /usr/lib/libjpeg.a
$(XLIBS)
...
...
x11vnc.c
View file @
11deabd3
...
...
@@ -73,11 +73,13 @@ void init_keycodes()
XFree
((
char
*
)
keymap
);
}
static
Bool
shutDownServer
=
0
;
/* the hooks */
void
clientGone
(
rfbClientPtr
cl
)
{
exit
(
0
)
;
shutDownServer
=-
1
;
}
enum
rfbNewClientAction
newClient
(
rfbClientPtr
cl
)
...
...
@@ -502,6 +504,15 @@ int main(int argc,char** argv)
#endif
rfbProcessEvents
(
screen
,
-
1
);
if
(
shutDownServer
)
{
free
(
backupImage
);
rfbScreenCleanup
(
screen
);
XFree
(
dpy
);
#ifndef NO_SHM
XShmDetach
(
dpy
,
framebufferImage
);
#endif
exit
(
0
);
}
if
(
dontTile
)
{
if
(
gotInput
)
{
...
...
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