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
1bb36df3
Commit
1bb36df3
authored
May 03, 2005
by
runge
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libvncserver/main.c: fix memory leak in rfbDoCopyRect/rfbScheduleCopyRect; configure.ac tweaks.
parent
b0daa444
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
12 deletions
+22
-12
ChangeLog
ChangeLog
+4
-0
configure.ac
configure.ac
+16
-12
main.c
libvncserver/main.c
+2
-0
No files found.
ChangeLog
View file @
1bb36df3
2005-05-03 Karl Runge <runge@karlrunge.com>
* libvncserver/main.c: fix leak in rfbDoCopyRect/rfbScheduleCopyRect
* configure.ac: guard against empty HAVE_X
2005-05-02 Karl Runge <runge@karlrunge.com>
2005-05-02 Karl Runge <runge@karlrunge.com>
* configure.ac: fatal error for x11vnc package if no X present
* configure.ac: fatal error for x11vnc package if no X present
* configure.ac: give warnings and info about missing libjpeg/libz
* configure.ac: give warnings and info about missing libjpeg/libz
...
...
configure.ac
View file @
1bb36df3
...
@@ -137,10 +137,10 @@ fi
...
@@ -137,10 +137,10 @@ fi
AC_SUBST(X_LIBS)
AC_SUBST(X_LIBS)
AM_CONDITIONAL(HAVE_X, test $HAVE_X != "false")
AM_CONDITIONAL(HAVE_X, test $HAVE_X != "false")
if test "$PACKAGE_NAME" = "x11vnc" -a
$HAVE_X = "
false"; then
if test "$PACKAGE_NAME" = "x11vnc" -a
"x$HAVE_X" = "x
false"; then
AC_MSG_ERROR([
AC_MSG_ERROR([
==========================================================================
==========================================================================
a
working X window system build environment is required to build x11vnc.
A
working X window system build environment is required to build x11vnc.
Make sure any required X development packages are installed. If they are
Make sure any required X development packages are installed. If they are
installed in non-standard locations, one can use the --x-includes=DIR
installed in non-standard locations, one can use the --x-includes=DIR
and --x-libraries=DIR configure options or set the CPPFLAGS and LDFLAGS
and --x-libraries=DIR configure options or set the CPPFLAGS and LDFLAGS
...
@@ -190,11 +190,13 @@ if test "x$with_jpeg" != "xno"; then
...
@@ -190,11 +190,13 @@ if test "x$with_jpeg" != "xno"; then
if test "$PACKAGE_NAME" = "x11vnc"; then
if test "$PACKAGE_NAME" = "x11vnc"; then
if test "x$HAVE_JPEGLIB_H" != "xtrue"; then
if test "x$HAVE_JPEGLIB_H" != "xtrue"; then
AC_MSG_WARN([
AC_MSG_WARN([
libjpeg compression library was not found: this may lead to reduced performance
==========================================================================
especially over slow links. If libjpeg is in a non-standard location
The libjpeg compression library was not found: this may lead to reduced
use --with-jpeg=DIR to indicate the header file is in DIR/include/jpeglib.h
performance, especially over slow links. If libjpeg is in a non-standard
and the library in DIR/lib/libjpeg.a. A copy of libjpeg may be obtained
location use --with-jpeg=DIR to indicate the header file is in
from: ftp://ftp.uu.net/graphics/jpeg/
DIR/include/jpeglib.h and the library in DIR/lib/libjpeg.a. A copy of
libjpeg may be obtained from: ftp://ftp.uu.net/graphics/jpeg/
==========================================================================
])
])
fi
fi
fi
fi
...
@@ -231,11 +233,13 @@ if test "x$with_zlib" != "xno" -a "x$with_libz" != "xno"; then
...
@@ -231,11 +233,13 @@ if test "x$with_zlib" != "xno" -a "x$with_libz" != "xno"; then
if test "$PACKAGE_NAME" = "x11vnc"; then
if test "$PACKAGE_NAME" = "x11vnc"; then
if test "x$HAVE_ZLIB_H" != "xtrue"; then
if test "x$HAVE_ZLIB_H" != "xtrue"; then
AC_MSG_WARN([
AC_MSG_WARN([
libz compression library was not found: this may lead to reduced performance,
==========================================================================
especially over slow links. If libz is in a non-standard location
The libz compression library was not found: this may lead to reduced
use --with-zlib=DIR to indicate the header file is in DIR/include/zlib.h
performance, especially over slow links. If libz is in a non-standard
and the library in DIR/lib/libz.a. A copy of libz may be obtained
location use --with-zlib=DIR to indicate the header file is in
from: http://www.gzip.org/zlib/
DIR/include/zlib.h and the library in DIR/lib/libz.a. A copy of
libz may be obtained from: http://www.gzip.org/zlib/
==========================================================================
])
])
fi
fi
fi
fi
...
...
libvncserver/main.c
View file @
1bb36df3
...
@@ -172,12 +172,14 @@ void rfbDoCopyRect(rfbScreenInfoPtr screen,int x1,int y1,int x2,int y2,int dx,in
...
@@ -172,12 +172,14 @@ void rfbDoCopyRect(rfbScreenInfoPtr screen,int x1,int y1,int x2,int y2,int dx,in
{
{
sraRegionPtr
region
=
sraRgnCreateRect
(
x1
,
y1
,
x2
,
y2
);
sraRegionPtr
region
=
sraRgnCreateRect
(
x1
,
y1
,
x2
,
y2
);
rfbDoCopyRegion
(
screen
,
region
,
dx
,
dy
);
rfbDoCopyRegion
(
screen
,
region
,
dx
,
dy
);
sraRgnDestroy
(
region
);
}
}
void
rfbScheduleCopyRect
(
rfbScreenInfoPtr
screen
,
int
x1
,
int
y1
,
int
x2
,
int
y2
,
int
dx
,
int
dy
)
void
rfbScheduleCopyRect
(
rfbScreenInfoPtr
screen
,
int
x1
,
int
y1
,
int
x2
,
int
y2
,
int
dx
,
int
dy
)
{
{
sraRegionPtr
region
=
sraRgnCreateRect
(
x1
,
y1
,
x2
,
y2
);
sraRegionPtr
region
=
sraRgnCreateRect
(
x1
,
y1
,
x2
,
y2
);
rfbScheduleCopyRegion
(
screen
,
region
,
dx
,
dy
);
rfbScheduleCopyRegion
(
screen
,
region
,
dx
,
dy
);
sraRgnDestroy
(
region
);
}
}
void
rfbMarkRegionAsModified
(
rfbScreenInfoPtr
screen
,
sraRegionPtr
modRegion
)
void
rfbMarkRegionAsModified
(
rfbScreenInfoPtr
screen
,
sraRegionPtr
modRegion
)
...
...
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