Details
-
Type:
Bug
-
Status: Resolved
-
Priority:
P3
-
Resolution: Fixed
-
Affects Version/s: 8u131, 9, 10
-
Fix Version/s: 10
-
Component/s: client-libs
-
Labels:
-
Subcomponent:
-
Resolved In Build:b33
-
CPU:generic
-
OS:generic
Description
The memory for awtFont is not freed before leaving scope in line 286.
252AwtFont* AwtFont::Create(JNIEnv *env, jobject font, jint angle, jfloat awScale)
[...]
277 awtFont = new AwtFont(cfnum, env, font);
278
279 awtFont->textAngle = angle;
280 awtFont->awScale = awScale;
281
282 if (cfnum > 0) {
283 // Ask peer class for the text component font name
284 jstring jTextComponentFontName = GetTextComponentFontName(env, font);
285 if (jTextComponentFontName == NULL) {
286 return NULL;
252AwtFont* AwtFont::Create(JNIEnv *env, jobject font, jint angle, jfloat awScale)
[...]
277 awtFont = new AwtFont(cfnum, env, font);
278
279 awtFont->textAngle = angle;
280 awtFont->awScale = awScale;
281
282 if (cfnum > 0) {
283 // Ask peer class for the text component font name
284 jstring jTextComponentFontName = GetTextComponentFontName(env, font);
285 if (jTextComponentFontName == NULL) {
286 return NULL;