harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ilya Leviev (JIRA)" <j...@apache.org>
Subject [jira] Created: (HARMONY-5330) [classlib][awt] memory leak at addFamily at winfont.cpp while EIOffice run
Date Wed, 19 Dec 2007 17:18:43 GMT
[classlib][awt] memory leak at addFamily at winfont.cpp while EIOffice run
--------------------------------------------------------------------------

                 Key: HARMONY-5330
                 URL: https://issues.apache.org/jira/browse/HARMONY-5330
             Project: Harmony
          Issue Type: Bug
          Components: Classlib
         Environment: win32
            Reporter: Ilya Leviev


memory leak at addFamily at winfont.cpp while EIOffice run

svn = r605216


While profiling a simple EIOffice application on Harmony using 
BoundsChecker, the tool detected following memory leaks. 

"families[famCount]" not disposed correctly while EIOffice startup-shutdown. 
The issue also reproduced while java2demo run. 

Here is stack trace: 


Memory Leak allocated by malloc.

addFamily	c:\home\os\hy2\trunk\working_classlib\modules\awt\src\main\native\winfont\windows\winfont.cpp
203

line 203:   families[famCount] = (TCHAR *)malloc((_tcslen(fam)+1) * sizeof(TCHAR));


EnumFontFamProc	c:\home\os\hy2\trunk\working_classlib\modules\awt\src\main\native\winfont\windows\winfont.cpp
222

line 222:   return addFamily((TCHAR *)(lpelfe->elfLogFont.lfFaceName));


	C:\WINDOWS\system32\gdi32.dll!0x0000bd28	
	C:\WINDOWS\system32\gdi32.dll!0x0000bc4d	
enumFamilies	c:\home\os\hy2\trunk\working_classlib\modules\awt\src\main\native\winfont\windows\winfont.cpp
274

line 274: res = EnumFontFamiliesEx(hDC, & lf, (FONTENUMPROC) EnumFontFamProc, 0, 0);


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message