Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8181139

Memory leak in awt_Font.cpp / AwtFont::Create

    Details

    • Subcomponent:
      2d
    • 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;

        Attachments

          Activity

            People

            • Assignee:
              prr Philip Race
              Reporter:
              mschoene Marc Schönefeld
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: