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

Memory leak in awt_Font.cpp / AwtFont::Create

XMLWordPrintable

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

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

              Created:
              Updated:
              Resolved: