riched20: Add leak detection code.

Mike McCormack mike at codeweavers.com
Tue Oct 24 00:33:04 CDT 2006


---
Hi,

This code is mainly for debugging.  I don't expect it to be applied, but 
don't object if it is.

It exposes a number of memory leaks in richedit.  For example, running 
the richedit regression test shows leaks at:

  line 248 file editor.c
  line 1120 file editor.c
  line 2230 file editor.c
  line 355 file string.c
  line 82 file undo.c
  line 2342 file reader.c
  line 2240 file editor.c
  line 32 file string.c
  line 35 file string.c
  line 145 file list.c

etc.

To use it, simply apply the attached patch, and run your favourite 
program that uses the richedit control.  (Assumes you have the previous 
two patches I sent to wine-patches applied.)

Mike


  dlls/riched20/editor.c |   33 +++++++++++++++++++
  dlls/riched20/editor.h |   84 
++++++++++++++++++++++++++++++++++++++++++++++++
  2 files changed, 117 insertions(+), 0 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: d97ba7fda3804ce50c1a317157b6a40c9cf23cb4.diff
Type: text/x-patch
Size: 4778 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-devel/attachments/20061024/48e6d9eb/d97ba7fda3804ce50c1a317157b6a40c9cf23cb4.bin


More information about the wine-devel mailing list