]> source.dussan.org Git - tigervnc.git/commitdiff
Fixed a memory leak caused by not deleting Image objects properly.
authorConstantin Kaplinsky <const@tightvnc.com>
Wed, 19 Apr 2006 10:32:33 +0000 (10:32 +0000)
committerConstantin Kaplinsky <const@tightvnc.com>
Wed, 19 Apr 2006 10:32:33 +0000 (10:32 +0000)
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/branches/merge-with-vnc-4.1.1@543 3789f03b-4d11-0410-bbf8-ca57d06f2519

x0vncserver/x0vncserver.cxx

index 336350d8a917009c2090c74f4f95a855ff499ae9..4ee44e0440a4dac964d8932054366546b1834963 100644 (file)
@@ -200,12 +200,13 @@ public:
   virtual void stop() {
     running = false;
 
-    // FIXME: Delete images as well?!
     delete pb;
     delete pollmgr;
+    delete image;
 
     pb = 0;
     pollmgr = 0;
+    image = 0;
   }
 
   inline bool isRunning() {