MantisBT - Community
View Issue Details
0022955Community[OCCT] OCCT:Visualizationpublic2012-01-31 14:142012-04-16 12:33
Pawel 
bugmaster 
normalminor 
closedfixed 
ALL
[OCCT] 6.5.2 
[OCCT] 6.5.3[OCCT] 6.5.3 
0022955: Memory leak in OpenGL_text.cxx
In line 155, if allocation of 'wstr' fails the method returns without deleting the 'data' variable

Solution:

if( !wstr )
  {
    delete data;
    return TFailure;
  }
No tags attached.
related to 0022819closed bugmaster Open CASCADE Redesign of OpenGl driver 
Issue History
2012-01-31 14:14PawelNew Issue
2012-01-31 14:14PawelAssigned To => san
2012-02-06 08:15abvRelationship addedrelated to 0022819
2012-02-06 08:15abvNote Added: 0019397
2012-02-21 11:33kgvNote Added: 0019695
2012-02-21 11:33kgvAssigned Tosan => bugmaster
2012-02-21 11:33kgvStatusnew => resolved
2012-03-23 20:22abvTarget Version => 6.5.3
2012-04-02 18:07bugmasterStatusresolved => reviewed
2012-04-02 18:07bugmasterStatusreviewed => verified
2012-04-02 18:07bugmasterResolutionopen => fixed
2012-04-02 18:07bugmasterAssigned Tobugmaster => Pawel
2012-04-12 16:20PawelNote Added: 0020362
2012-04-16 12:33PawelAssigned ToPawel => bugmaster

Notes
(0019397)
abv   
2012-02-06 08:15   
To be checked after integration of 0022819
(0019695)
kgv   
2012-02-21 11:33   
By default 'new wchar_t[i]' will raise an exception on allocation error. So NULL-check is useless here and never happens. NULL-check is removed in 0022819.
(0020362)
Pawel   
2012-04-12 16:20   
Verified. Please close.