harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hinde...@apache.org
Subject svn commit: r935196 - /harmony/enhanced/java/trunk/classlib/modules/awt/src/main/native/linuxfont/unix/LinuxNativeFont.c
Date Sat, 17 Apr 2010 16:06:22 GMT
Author: hindessm
Date: Sat Apr 17 16:06:22 2010
New Revision: 935196

URL: http://svn.apache.org/viewvc?rev=935196&view=rev
Log:
Applying patches from "[#HARMONY-6501] [classlib][awt] Memory leak bug in
LinuxNativeFont.c(507)".

Modified:
    harmony/enhanced/java/trunk/classlib/modules/awt/src/main/native/linuxfont/unix/LinuxNativeFont.c

Modified: harmony/enhanced/java/trunk/classlib/modules/awt/src/main/native/linuxfont/unix/LinuxNativeFont.c
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/trunk/classlib/modules/awt/src/main/native/linuxfont/unix/LinuxNativeFont.c?rev=935196&r1=935195&r2=935196&view=diff
==============================================================================
--- harmony/enhanced/java/trunk/classlib/modules/awt/src/main/native/linuxfont/unix/LinuxNativeFont.c
(original)
+++ harmony/enhanced/java/trunk/classlib/modules/awt/src/main/native/linuxfont/unix/LinuxNativeFont.c
Sat Apr 17 16:06:22 2010
@@ -504,6 +504,7 @@ JNIEXPORT jlong JNICALL 
     if (fid == 0) {
         (*env)->ExceptionDescribe(env);
         (*env)->ExceptionClear(env);
+        free(buffer);
         return (jlong)(IDATA)NULL;
     }
     scr = (*env)->GetIntField(env, linuxFont, fid);



Mime
View raw message