diff options
author | dscho <dscho> | 2002-04-25 13:41:52 +0000 |
---|---|---|
committer | dscho <dscho> | 2002-04-25 13:41:52 +0000 |
commit | efa12fa978ca10c329e4cb14fefa597a6d93f2e8 (patch) | |
tree | 5ee9b933785b16c810a3ba5962afb4f7596cbd58 /rfbserver.c | |
parent | 160c85f4ecd37b9ab046403e0bc1b5f834a9c3d4 (diff) | |
download | libtdevnc-efa12fa978ca10c329e4cb14fefa597a6d93f2e8.tar.gz libtdevnc-efa12fa978ca10c329e4cb14fefa597a6d93f2e8.zip |
memleaks patched
Diffstat (limited to 'rfbserver.c')
-rw-r--r-- | rfbserver.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/rfbserver.c b/rfbserver.c index 024b851..913ee54 100644 --- a/rfbserver.c +++ b/rfbserver.c @@ -124,6 +124,7 @@ void rfbReleaseClientIterator(rfbClientIteratorPtr iterator) { IF_PTHREADS(if(iterator->next) rfbDecrClientRef(iterator->next)); + free(iterator); } @@ -372,6 +373,8 @@ rfbClientConnectionGone(cl) pointerClient = NULL; sraRgnDestroy(cl->modifiedRegion); + sraRgnDestroy(cl->requestedRegion); + sraRgnDestroy(cl->copyRegion); UNLOCK(rfbClientListMutex); @@ -1123,6 +1126,7 @@ rfbSendFramebufferUpdate(cl, givenUpdateRegion) break; } } + sraRgnReleaseIterator(i); if ( nUpdateRegionRects == 0xFFFF && !rfbSendLastRectMarker(cl) ) { |