Page 1 of 1

Memory leak in TPrintPreview

PostPosted: September 30th, 2004, 12:56 pm
by TGR
Memory Sleuth reported a a meory leak in TPrintPreview around line 2279 (in FetchFormNames).

I added a try... finally block freeing DeviceMode in the finally section.
Memory Sleuth seems to be happy...

PostPosted: October 1st, 2004, 10:03 am
by Kambiz
The memory leak reported by Memory Sleuth is wrong, and DeviceMode should not be released.

PostPosted: October 1st, 2004, 10:20 am
by TGR
Ok. I know Memory Sleuth sometimes reports memory leaks in error. Thank you for clearing this up.