-
Bug
-
Resolution: Fixed
-
P3
-
8u131, 9, 10
-
b33
-
generic
-
generic
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;