[vino] fix bug 582608 - set pointers to NULL after freeing, otherwise you can't create a VinoServer after t



commit 27540af29262e58ccbeeba9b21543303c935027a
Author: Arnaud Maillet <arnaud maillet collabora co uk>
Date:   Thu May 14 13:55:45 2009 +0200

    fix bug 582608 - set pointers to NULL after freeing, otherwise you can't create a VinoServer after the destruction of another
---
 server/libvncserver/tight.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/server/libvncserver/tight.c b/server/libvncserver/tight.c
index 2bc537b..9828f4e 100644
--- a/server/libvncserver/tight.c
+++ b/server/libvncserver/tight.c
@@ -119,10 +119,12 @@ void rfbTightCleanup()
 {
   if(tightBeforeBufSize) {
     free(tightBeforeBuf);
+    tightBeforeBuf = NULL;
     tightBeforeBufSize=0;
   }
   if(tightAfterBufSize) {
     free(tightAfterBuf);
+    tightAfterBuf = NULL;
     tightAfterBufSize=0;
   }
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]