diff options
author | Thomas Paviot <tpaviot@gmail.com> | 2012-03-04 22:41:42 -0800 |
---|---|---|
committer | Thomas Paviot <tpaviot@gmail.com> | 2012-03-04 22:41:42 -0800 |
commit | 13965711913c4590549de562e55c922fb0889d24 (patch) | |
tree | 3312f4f1eff1471ccb495b4c0c2195c5eb8291d5 | |
parent | 5f62e96d59f3955fd7d76489ad0233e45936f457 (diff) | |
parent | dd1cc2562e54419a747b7a02e72b4492cdc2669b (diff) | |
download | oce-13965711913c4590549de562e55c922fb0889d24.tar.gz oce-13965711913c4590549de562e55c922fb0889d24.zip |
Merge pull request #258 from tpaviot/review/memory-leak-fix
Fix memory leak in OSD_FontMgr.cxx
-rw-r--r-- | src/OSD/OSD_FontMgr.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/OSD/OSD_FontMgr.cxx b/src/OSD/OSD_FontMgr.cxx index 047d0616..15cfe63a 100644 --- a/src/OSD/OSD_FontMgr.cxx +++ b/src/OSD/OSD_FontMgr.cxx @@ -171,8 +171,11 @@ void OSD_FontMgr::InitFontDataBase() { return ; } if( !strcat( font_dir, "\\Fonts\\" ) ) + { + delete [] windir_var; + delete [] font_dir; return ; - + } Handle(TCollection_HAsciiString) HFontDir = new TCollection_HAsciiString(font_dir); #ifdef TRACE |