Memory leak on empty strings in function TWidgetSet.DrawText (fix attached)
Original Reporter info from Mantis: accSone
-
Reporter name:
Original Reporter info from Mantis: accSone
- Reporter name:
Description:
Due to BP compatibility there is a double termination on zero count empty strings that will lead to memory leaks.
Steps to reproduce:
Call function with Str count=0 together with heaptrc (-gh) option on. heaptrc will throw error and halt later.
Additional information:
see fix attached
Mantis conversion info:
- Mantis ID: 25458
- OS: OSX
- OS Build: 10.6.8
- Platform: darwin x86_64
- Version: 1.3 (SVN)
- Fixed in version: 1.4
- Fixed in revision: 43648 (#39872a9b)
- Target version: 1.3 (SVN)