Menu

Check sources with cppcheck

Yevgen
2009-11-27
2013-04-01
  • Yevgen

    Yevgen - 2009-11-27

    Hi,

    Have you ever check colorer src with static code analyzer?

    It's result of cppcheck ():

    - Colorer-take5.be5\Colorer-take5.be5\src\hrdsets\hrdsets.cpp:81]:
       (error) Resource leak: file
    -  Colorer-take5.be5\Colorer-take5.be5\src\pcolorer\FarEditorSet.cpp:207]:
       (error) Possible null pointer
       dereference: type - otherwise it is
       redundant to check if type is null at
       line 208
    -  Colorer-take5.be5\Colorer-take5.be5\src\shared\unicode\CharacterClass.cpp:29]:
       (possible error) Memory leak: cc

    Can you check this ?

    Thanks

      : http://cppcheck.wiki.sourceforge.net/

     
  • Igor Russkih

    Igor Russkih - 2009-11-28

    Hi,

    Thanks for the report, I've fixed the leaks (although they seemed not to be critical)

     

Log in to post a comment.