axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dushshan...@apache.org
Subject svn commit: r492921 - /webservices/axis2/trunk/c/woden/src/wsdl10/woden_wsdl10_svc.c
Date Fri, 05 Jan 2007 06:24:35 GMT
Author: dushshantha
Date: Thu Jan  4 22:24:34 2007
New Revision: 492921

URL: http://svn.apache.org/viewvc?view=rev&rev=492921
Log:
fix for the seg fault in woden 

Modified:
    webservices/axis2/trunk/c/woden/src/wsdl10/woden_wsdl10_svc.c

Modified: webservices/axis2/trunk/c/woden/src/wsdl10/woden_wsdl10_svc.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/woden/src/wsdl10/woden_wsdl10_svc.c?view=diff&rev=492921&r1=492920&r2=492921
==============================================================================
--- webservices/axis2/trunk/c/woden/src/wsdl10/woden_wsdl10_svc.c (original)
+++ webservices/axis2/trunk/c/woden/src/wsdl10/woden_wsdl10_svc.c Thu Jan  4 22:24:34 2007
@@ -153,7 +153,8 @@
       else
 	    svc_impl = (woden_wsdl10_svc_impl_t *) svc;
 
-      woden_wsdl10_svc_free_ops(svc, env);
+      if(svc)
+        woden_wsdl10_svc_free_ops(svc, env);
 
       svc_impl->svc.base.svc_element.ops =
 	    AXIS2_MALLOC(env->allocator,
@@ -307,6 +308,7 @@
       const axis2_env_t *env)
 {
       woden_wsdl10_svc_impl_t *svc_impl = NULL;
+      woden_documentable_t *documentable = NULL;
 
       AXIS2_ENV_CHECK(env, NULL);
       if (!svc)
@@ -323,8 +325,10 @@
       svc_impl->svc.base.
 	    configurable.base.documentable.ops = AXIS2_MALLOC(env->allocator,
 							      sizeof(woden_documentable_ops_t));
+      documentable = WODEN_CONFIGURABLE_GET_BASE_IMPL(svc_impl->configurable, 
+          env);
       woden_documentable_resolve_methods(&(svc_impl->svc.base.
-					   configurable.base.documentable), env, NULL,
+					   configurable.base.documentable), env, documentable,
 					 svc_impl->methods);
       return svc;
 }
@@ -488,6 +492,7 @@
 woden_wsdl10_svc_create(const axis2_env_t *env)
 {
       woden_wsdl10_svc_impl_t *svc_impl = NULL;
+      woden_documentable_t *documentable = NULL;
 
       AXIS2_ENV_CHECK(env, NULL);
       svc_impl = (woden_wsdl10_svc_impl_t *) create(env);
@@ -504,6 +509,9 @@
 		     &(svc_impl->svc));
       axis2_hash_set(svc_impl->super, "WODEN_NESTED_CONFIGURABLE", AXIS2_HASH_KEY_STRING,
 		     svc_impl->configurable);
+      documentable = WODEN_CONFIGURABLE_GET_BASE_IMPL(svc_impl->configurable, env);
+      axis2_hash_set(svc_impl->super, "WODEN_DOCUMENTABLE", AXIS2_HASH_KEY_STRING,
+		     documentable);
 
       return &(svc_impl->svc);
 }
@@ -952,5 +960,6 @@
       svc_impl->f_interface = interface;
       return AXIS2_SUCCESS;
 }
+
 
 



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org


Mime
View raw message