harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hinde...@apache.org
Subject svn commit: r619642 - /harmony/enhanced/classlib/trunk/modules/archive/src/main/native/archive/shared/jarfile.c
Date Thu, 07 Feb 2008 21:17:44 GMT
Author: hindessm
Date: Thu Feb  7 13:17:43 2008
New Revision: 619642

URL: http://svn.apache.org/viewvc?rev=619642&view=rev
Log:
Another case similar to r575035 where we are getting the global reference
from the cache so we don't need to make a local reference.

Modified:
    harmony/enhanced/classlib/trunk/modules/archive/src/main/native/archive/shared/jarfile.c

Modified: harmony/enhanced/classlib/trunk/modules/archive/src/main/native/archive/shared/jarfile.c
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/archive/src/main/native/archive/shared/jarfile.c?rev=619642&r1=619641&r2=619642&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/archive/src/main/native/archive/shared/jarfile.c
(original)
+++ harmony/enhanced/classlib/trunk/modules/archive/src/main/native/archive/shared/jarfile.c
Thu Feb  7 13:17:43 2008
@@ -204,11 +204,6 @@
 	    goto cleanup;
 	}
       javaClass = JCL_CACHE_GET (env, CLS_java_util_zip_ZipEntry);
-	  javaClass = (*env)->NewLocalRef(env, javaClass);
-      if (javaClass == NULL) {
-          result = NULL;
-          goto cleanup;
-      }
       result = ((*env)->NewObjectArray (env, resultCount, javaClass, NULL));
       if (((*env)->ExceptionCheck (env)))
 	{



Mime
View raw message