You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Ilya Leviev (JIRA)" <ji...@apache.org> on 2007/12/19 18:18:43 UTC

[jira] Created: (HARMONY-5330) [classlib][awt] memory leak at addFamily at winfont.cpp while EIOffice run

[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.