[prev in list] [next in list] [prev in thread] [next in thread] 

List:       helix-client-cvs
Subject:    [Client-cvs] core hxflsrc.cpp,1.142,1.143
From:       ching_li () helixcommunity ! org
Date:       2011-01-24 2:15:29
Message-ID: 201101240215.p0O2FUbV027129 () mailer ! progressive-comp ! com
[Download RAW message or body]

Update of /cvsroot/client/core
In directory cvs01.internal.helixcommunity.org:/tmp/cvs-serv26172

Modified Files:
	hxflsrc.cpp 
Log Message:
Fix a memory leak issue.


Index: hxflsrc.cpp
===================================================================
RCS file: /cvsroot/client/core/hxflsrc.cpp,v
retrieving revision 1.142
retrieving revision 1.143
diff -u -d -r1.142 -r1.143
--- hxflsrc.cpp	27 Sep 2010 14:57:47 -0000	1.142
+++ hxflsrc.cpp	24 Jan 2011 02:15:26 -0000	1.143
@@ -879,6 +879,8 @@
 	    HX_VECTOR_DELETE(m_pExtension);
 	    m_pExtension = ::new_string(pExtension);
 	}
+
+        HX_VECTOR_DELETE(pszURL);
     }
 
     if (!m_pCurrentFileFormatUnk)
@@ -980,8 +982,6 @@
 	theErr = InitializeFileFormat();
     }
 
-    HX_VECTOR_DELETE(pszURL);
-
     // if there is an error, make sure there is no m_pCurrentFileFormatUnk...
     // if m_pCurrentFileFormatUnk is not NULL, it means we need to try 
     // the next plugin that supports this mimetype.


_______________________________________________
Client-cvs mailing list
Client-cvs@helixcommunity.org
http://lists.helixcommunity.org/mailman/listinfo/client-cvs
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic