Menu

#511 TCoolTextBuffer::SyntaxArray and TCoolTextWnd::ActualLineLength are deleted incorrectly

8
pending
1
2026-03-31
2022-01-10
No

The dynamically allocated arrays TCoolTextBuffer::SyntaxArray and TCoolTextWnd::ActualLineLength are incorrectly deallocated using delete. They should be deallocated using delete[].

Related

Discussion: Preparing OWLNext 7.0.7, 6.44.17 and 6.36.6 updates
Feature Requests: #54

Discussion

  • Vidar Hasfjord

    Vidar Hasfjord - 2022-01-10

    A partial fix for this issue was implemented on the trunk in [r5720].

    Note that another instance of this issue remains for SyntaxArray in TCoolTextBuffer::SetSyntaxArray, where SyntaxArray is still deallocated using plain delete.

     

    Related

    Commit: [r5720]

  • Sebastian Ledesma

    Done with [r5723] !

     
    👍
    1

    Related

    Commit: [r5723]

  • Sebastian Ledesma

    • status: open --> pending
     
  • Vidar Hasfjord

    Vidar Hasfjord - 2025-10-04
    • Status: pending --> closed
     
  • Vidar Hasfjord

    Vidar Hasfjord - 2026-03-31
    • Status: closed --> pending
     

Log in to post a comment.

MongoDB Logo MongoDB