[SCM] OCE packaging branch, upstream, updated. OCE-0.6.0-230-g17bea23
tpaviot
tpaviot at gmail.com
Fri Feb 24 18:50:37 UTC 2012
The following commit has been merged in the upstream branch:
commit 9f60bc825fc1576a6de139abee734dbbe37b1388
Author: tpaviot <tpaviot at gmail.com>
Date: Thu Jan 12 22:04:27 2012 +0100
[cppcheck-error-fix][memory-leak]
[OSD/OSD_FontMgr.cxx:168]: (error) Memory leak: windir_var
[OSD/OSD_FontMgr.cxx:168]: (error) Memory leak: font_dir
diff --git a/src/OSD/OSD_FontMgr.cxx b/src/OSD/OSD_FontMgr.cxx
index 7c6af1f..a39b377 100644
--- a/src/OSD/OSD_FontMgr.cxx
+++ b/src/OSD/OSD_FontMgr.cxx
@@ -165,6 +165,8 @@ void OSD_FontMgr::InitFontDataBase() {
Standard_Character *font_dir = new Standard_Character[ req_size + strlen("\\Fonts\\") + 1 ] ;
if( !strcpy( font_dir, windir_var ) )
+ delete [] windir_var;
+ delete [] font_dir;
return ;
if( !strcat( font_dir, "\\Fonts\\" ) )
return ;
--
OCE packaging
More information about the debian-science-commits
mailing list