[SCM] OCE packaging branch, upstream, updated. OCE-0.6.0-230-g17bea23

tpaviot tpaviot at gmail.com
Fri Feb 24 18:50:44 UTC 2012


The following commit has been merged in the upstream branch:
commit 185c23a2f01d68d56f2426cb629055f109651db5
Author: tpaviot <tpaviot at gmail.com>
Date:   Sun Jan 15 15:43:55 2012 +0100

    [cppcheck-error-fix][memory-leak]
    
    [MFT/MFT_FontManager.cxx:2287]: (error) Memory leak: pencoding

diff --git a/src/MFT/MFT_FontManager.cxx b/src/MFT/MFT_FontManager.cxx
index e215d56..7e51adc 100644
--- a/src/MFT/MFT_FontManager.cxx
+++ b/src/MFT/MFT_FontManager.cxx
@@ -2284,7 +2284,10 @@ Standard_CString pencoding;
       if( this->IsDefinedChar(i) ) {
         this->DrawChar(theTextManager,i);
         pencoding = theTextManager->Encoding();
-	if( !strcmp(anEncoding,pencoding) ) return i;
+	if( !strcmp(anEncoding,pencoding) ) {
+        delete pencoding;
+        return i;
+        }
       }
     }
 

-- 
OCE packaging



More information about the debian-science-commits mailing list