axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shan...@apache.org
Subject svn commit: r762752 - /webservices/axis2/trunk/c/util/src/hash.c
Date Wed, 08 Apr 2009 04:10:40 GMT
Author: shankar
Date: Tue Apr  7 12:52:00 2009
New Revision: 762752

URL: http://svn.apache.org/viewvc?rev=762752&view=rev
Log:
Incrementing env counter when env is copied.

Modified:
    webservices/axis2/trunk/c/util/src/hash.c

Modified: webservices/axis2/trunk/c/util/src/hash.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/util/src/hash.c?rev=762752&r1=762751&r2=762752&view=diff
==============================================================================
--- webservices/axis2/trunk/c/util/src/hash.c (original)
+++ webservices/axis2/trunk/c/util/src/hash.c Tue Apr  7 12:52:00 2009
@@ -342,6 +342,7 @@
              sizeof(axutil_hash_t) + sizeof(*ht->array) * (orig->max + 1) +
              sizeof(axutil_hash_entry_t) * orig->count);
     ht->env = env;
+    axutil_env_increment_ref((axutil_env_t*)env);
     ht->free = NULL;
     ht->count = orig->count;
     ht->max = orig->max;
@@ -474,6 +475,7 @@
 
     res = AXIS2_MALLOC(env->allocator, sizeof(axutil_hash_t));
     res->env = env;
+    axutil_env_increment_ref((axutil_env_t*)env);
     res->free = NULL;
     res->hash_func = base->hash_func;
     res->count = base->count;



Mime
View raw message