Plug memory leak

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



	Huw D M Davies <h.davies1@physics.ox.ac.uk>
	Add a HeapFree.
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);
 		}

[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux