diff options
| author | runge <runge> | 2005-05-03 22:37:51 +0000 |
|---|---|---|
| committer | runge <runge> | 2005-05-03 22:37:51 +0000 |
| commit | 1bb36df34ea25a3379b5232154a55e4da489ab60 (patch) | |
| tree | dbf17e80285abe351d7a8d8ef62d1ee58929931b /libvncserver | |
| parent | b0daa444cc2fdda15b8b82497d17f80e7d75f8ad (diff) | |
| download | libtdevnc-1bb36df34ea25a3379b5232154a55e4da489ab60.tar.gz libtdevnc-1bb36df34ea25a3379b5232154a55e4da489ab60.zip | |
libvncserver/main.c: fix memory leak in rfbDoCopyRect/rfbScheduleCopyRect; configure.ac tweaks.
Diffstat (limited to 'libvncserver')
| -rw-r--r-- | libvncserver/main.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libvncserver/main.c b/libvncserver/main.c index 9447bf0..529bf2a 100644 --- a/libvncserver/main.c +++ b/libvncserver/main.c @@ -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); rfbDoCopyRegion(screen,region,dx,dy); + sraRgnDestroy(region); } void rfbScheduleCopyRect(rfbScreenInfoPtr screen,int x1,int y1,int x2,int y2,int dx,int dy) { sraRegionPtr region = sraRgnCreateRect(x1,y1,x2,y2); rfbScheduleCopyRegion(screen,region,dx,dy); + sraRgnDestroy(region); } void rfbMarkRegionAsModified(rfbScreenInfoPtr screen,sraRegionPtr modRegion) |
