]> source.dussan.org Git - tigervnc.git/commitdiff
Use the correct matching free operation. Patch by Matthieu Lochegnies.
authorPierre Ossman <ossman@cendio.se>
Wed, 9 Nov 2011 11:31:12 +0000 (11:31 +0000)
committerPierre Ossman <ossman@cendio.se>
Wed, 9 Nov 2011 11:31:12 +0000 (11:31 +0000)
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4786 3789f03b-4d11-0410-bbf8-ca57d06f2519

common/rfb/Security.cxx
vncviewer/CConn.cxx

index b5f361e9fdfbb6de9121962ea4bf7bb70ca05b0d..238f335169b58b98002a353474b27ddfdec9369e 100644 (file)
@@ -63,7 +63,7 @@ Security::Security(StringParameter &secTypes)
   secTypesStr = secTypes.getData();
   enabledSecTypes = parseSecTypes(secTypesStr);
 
-  delete secTypesStr;
+  delete [] secTypesStr;
 }
 
 const std::list<rdr::U8> Security::GetEnabledSecTypes(void)
index 46dcd22880eb007c32915912f5427c6d38823cd0..3e008ca973a3812ba9ed999fc2d17796601ae5cb 100644 (file)
@@ -122,7 +122,7 @@ CConn::~CConn()
   if (desktop)
     delete desktop;
 
-  free(serverHost);
+  delete [] serverHost;
   if (sock)
     Fl::remove_fd(sock->getFd());
   delete sock;