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
be5b1296
Commit
be5b1296
authored
May 15, 2005
by
runge
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libvncserver/{main.c,rfbserver.c}: fix a couple more CopyRect memory leaks
parent
320edc79
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
main.c
libvncserver/main.c
+1
-0
rfbserver.c
libvncserver/rfbserver.c
+2
-2
No files found.
libvncserver/main.c
View file @
be5b1296
...
@@ -164,6 +164,7 @@ void rfbDoCopyRegion(rfbScreenInfoPtr screen,sraRegionPtr copyRegion,int dx,int
...
@@ -164,6 +164,7 @@ void rfbDoCopyRegion(rfbScreenInfoPtr screen,sraRegionPtr copyRegion,int dx,int
memmove
(
out
,
in
,
widthInBytes
);
memmove
(
out
,
in
,
widthInBytes
);
}
}
}
}
sraRgnReleaseIterator
(
i
);
rfbScheduleCopyRegion
(
screen
,
copyRegion
,
dx
,
dy
);
rfbScheduleCopyRegion
(
screen
,
copyRegion
,
dx
,
dy
);
}
}
...
...
libvncserver/rfbserver.c
View file @
be5b1296
...
@@ -1315,8 +1315,6 @@ rfbSendFramebufferUpdate(cl, givenUpdateRegion)
...
@@ -1315,8 +1315,6 @@ rfbSendFramebufferUpdate(cl, givenUpdateRegion)
goto
updateFailed
;
goto
updateFailed
;
}
}
sraRgnDestroy
(
updateCopyRegion
);
for
(
i
=
sraRgnGetIterator
(
updateRegion
);
sraRgnIteratorNext
(
i
,
&
rect
);){
for
(
i
=
sraRgnGetIterator
(
updateRegion
);
sraRgnIteratorNext
(
i
,
&
rect
);){
int
x
=
rect
.
x1
;
int
x
=
rect
.
x1
;
int
y
=
rect
.
y1
;
int
y
=
rect
.
y1
;
...
@@ -1381,6 +1379,7 @@ updateFailed:
...
@@ -1381,6 +1379,7 @@ updateFailed:
if
(
i
)
if
(
i
)
sraRgnReleaseIterator
(
i
);
sraRgnReleaseIterator
(
i
);
sraRgnDestroy
(
updateRegion
);
sraRgnDestroy
(
updateRegion
);
sraRgnDestroy
(
updateCopyRegion
);
return
result
;
return
result
;
}
}
...
@@ -1434,6 +1433,7 @@ rfbSendCopyRegion(cl, reg, dx, dy)
...
@@ -1434,6 +1433,7 @@ rfbSendCopyRegion(cl, reg, dx, dy)
+=
sz_rfbFramebufferUpdateRectHeader
+
sz_rfbCopyRect
;
+=
sz_rfbFramebufferUpdateRectHeader
+
sz_rfbCopyRect
;
}
}
sraRgnReleaseIterator
(
i
);
return
TRUE
;
return
TRUE
;
}
}
...
...
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