Plug memory leak

Huw D M Davies h.davies1 at physics.ox.ac.uk
Thu Aug 8 06:28:10 CDT 2002


	Huw D M Davies <h.davies1 at physics.ox.ac.uk>
	Add a HeapFree.
-------------- next part --------------
Index: objects/text.c
===================================================================
RCS file: /home/wine/wine/objects/text.c,v
retrieving revision 1.47
diff -u -r1.47 text.c
--- objects/text.c	22 Jun 2002 01:19:29 -0000	1.47
+++ objects/text.c	8 Aug 2002 11:27:56 -0000
@@ -203,6 +203,7 @@
 				
 				ret = dc->funcs->pExtTextOut(dc->physDev,x,y,flags|ETO_IGNORELANGUAGE,
 					lprect,gcp.lpOutString,count,lpDx);
+				HeapFree(GetProcessHeap(), 0, gcp.lpOutString);
 			} else
 				ret = dc->funcs->pExtTextOut(dc->physDev,x,y,flags,lprect,str,count,lpDx);
 		}


More information about the wine-patches mailing list