#1487 Memory Leak of Font Names

Bug
closed-fixed
Neil Hodgson
scintilla (178)
5
2015-01-05
2013-06-12
Simon Smith
No

Between Scintilla 3.31 and 3.32, a memory leak was introduced in the method FontNames::Clear. The font name string buffers are never freed and are therefore leaked. The following lines of code need to be inserted at the beginning of the method:

for ( unsigned i = 0; i < names.size(); ++i )
    delete [] names[i];

Discussion

  • Neil Hodgson
    Neil Hodgson
    2013-06-13

    Fix committed as [97f756].

     

    Related

    Commit: [97f756]

  • Neil Hodgson
    Neil Hodgson
    2013-06-18

    • labels: --> scintilla
    • status: open --> open-fixed
    • assigned_to: Neil Hodgson
     
  • Neil Hodgson
    Neil Hodgson
    2013-07-21

    • status: open-fixed --> closed-fixed