axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From din...@apache.org
Subject svn commit: r465580 - /webservices/axis2/trunk/c/woden/src/wsdl10/msg_ref.c
Date Thu, 19 Oct 2006 11:28:23 GMT
Author: dinesh
Date: Thu Oct 19 04:28:21 2006
New Revision: 465580

URL: http://svn.apache.org/viewvc?view=rev&rev=465580
Log:
fixed:calls to NULL pointers in wsdl10/msg_ref.c

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

Modified: webservices/axis2/trunk/c/woden/src/wsdl10/msg_ref.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/woden/src/wsdl10/msg_ref.c?view=diff&rev=465580&r1=465579&r2=465580
==============================================================================
--- webservices/axis2/trunk/c/woden/src/wsdl10/msg_ref.c (original)
+++ webservices/axis2/trunk/c/woden/src/wsdl10/msg_ref.c Thu Oct 19 04:28:21 2006
@@ -65,9 +65,9 @@
     void *msg_ref,
     const axis2_env_t *env);
 
-/* ************************************************************
+/*************************************************************
  *  Interface Operation  methods (the WSDL Component model)
- * ************************************************************/
+ *************************************************************/
 
 axis2_qname_t *AXIS2_CALL
 woden_wsdl10_msg_ref_get_qname(
@@ -118,19 +118,21 @@
 
     AXIS2_ENV_CHECK(env, NULL);
     if (!msg_ref)
-    {
-        msg_ref_impl = (woden_wsdl10_msg_ref_impl_t *) create(env);
-    }
+		{
+			 msg_ref_impl = (woden_wsdl10_msg_ref_impl_t *) create(env);
+		}
     else
         msg_ref_impl = (woden_wsdl10_msg_ref_impl_t *) msg_ref;
 
-    woden_wsdl10_msg_ref_free_ops(msg_ref, env);
+	 if (msg_ref)
+		  woden_wsdl10_msg_ref_free_ops(msg_ref, env);
 
     msg_ref_impl->msg_ref.base.msg_ref_element.ops =
         AXIS2_MALLOC(env->allocator,
-                sizeof(woden_wsdl10_msg_ref_element_ops_t));
+							sizeof(woden_wsdl10_msg_ref_element_ops_t));
     woden_wsdl10_msg_ref_element_resolve_methods(&(msg_ref_impl->msg_ref.base.
-            msg_ref_element), env, msg_ref_impl->methods);
+																	msg_ref_element), env, 
+																 msg_ref_impl->methods);
     return msg_ref;
 }
 
@@ -143,20 +145,22 @@
 
     AXIS2_ENV_CHECK(env, NULL);
     if (!msg_ref)
-    {
-        msg_ref_impl = (woden_wsdl10_msg_ref_impl_t *) create(env);
-    }
+		{
+			 msg_ref_impl = (woden_wsdl10_msg_ref_impl_t *) create(env);
+		}
     else
         msg_ref_impl = (woden_wsdl10_msg_ref_impl_t *) msg_ref;
 
-    woden_wsdl10_msg_ref_free_ops(msg_ref, env);
+	 if (msg_ref)
+		  woden_wsdl10_msg_ref_free_ops(msg_ref, env);
 
     msg_ref_impl->msg_ref.base.nested_configurable.ops =
         AXIS2_MALLOC(env->allocator,
-                sizeof(woden_nested_configurable_ops_t));
+							sizeof(woden_nested_configurable_ops_t));
     woden_nested_configurable_resolve_methods(&(msg_ref_impl->msg_ref.base.
-            nested_configurable), env, msg_ref_impl->nested_configurable,
-            msg_ref_impl->methods);
+																nested_configurable), env, 
+															 msg_ref_impl->nested_configurable,
+															 msg_ref_impl->methods);
     return msg_ref;
 }
 
@@ -169,19 +173,22 @@
 
     AXIS2_ENV_CHECK(env, NULL);
     if (!msg_ref)
-    {
-        msg_ref_impl = (woden_wsdl10_msg_ref_impl_t *) create(env);
-    }
+		{
+			 msg_ref_impl = (woden_wsdl10_msg_ref_impl_t *) create(env);
+		}
     else
         msg_ref_impl = (woden_wsdl10_msg_ref_impl_t *) msg_ref;
 
-    woden_wsdl10_msg_ref_free_ops(msg_ref, env);
+	 if (msg_ref)
+		  woden_wsdl10_msg_ref_free_ops(msg_ref, env);
 
     msg_ref_impl->msg_ref.base.nested_configurable.base.nested_component.ops =
         AXIS2_MALLOC(env->allocator,
-                sizeof(woden_nested_component_ops_t));
+							sizeof(woden_nested_component_ops_t));
     woden_nested_component_resolve_methods(&(msg_ref_impl->msg_ref.base.
-            nested_configurable.base.nested_component), env, msg_ref_impl->methods);
+															nested_configurable.base.
+															nested_component), env,
+														 msg_ref_impl->methods);
     return msg_ref;
 }
 
@@ -195,21 +202,23 @@
 
     AXIS2_ENV_CHECK(env, NULL);
     if (!msg_ref)
-    {
-        msg_ref_impl = (woden_wsdl10_msg_ref_impl_t *) create(env);
-    }
+		{
+			 msg_ref_impl = (woden_wsdl10_msg_ref_impl_t *) create(env);
+		}
     else
         msg_ref_impl = (woden_wsdl10_msg_ref_impl_t *) msg_ref;
 
-    woden_wsdl10_msg_ref_free_ops(msg_ref, env);
+	 if (msg_ref)
+		  woden_wsdl10_msg_ref_free_ops(msg_ref, env);
 
     msg_ref_impl->msg_ref.base.nested_configurable.base.configurable.ops =
         AXIS2_MALLOC(env->allocator,
-                sizeof(woden_configurable_ops_t));
+							sizeof(woden_configurable_ops_t));
     configurable = WODEN_NESTED_CONFIGURABLE_GET_BASE_IMPL(
-                msg_ref_impl->nested_configurable, env);
+		  msg_ref_impl->nested_configurable, env);
     woden_configurable_resolve_methods(&(msg_ref_impl->msg_ref.base.
-            nested_configurable.base.configurable), env, configurable, msg_ref_impl->methods);
+													  nested_configurable.base.configurable),
+													env, configurable, msg_ref_impl->methods);
     return msg_ref;
 }
 
@@ -222,19 +231,21 @@
 
     AXIS2_ENV_CHECK(env, NULL);
     if (!msg_ref)
-    {
-        msg_ref_impl = (woden_wsdl10_msg_ref_impl_t *) create(env);
-    }
+		{
+			 msg_ref_impl = (woden_wsdl10_msg_ref_impl_t *) create(env);
+		}
     else
         msg_ref_impl = (woden_wsdl10_msg_ref_impl_t *) msg_ref;
 
-    woden_wsdl10_msg_ref_free_ops(msg_ref, env);
+	 if (msg_ref)
+		  woden_wsdl10_msg_ref_free_ops(msg_ref, env);
 
     msg_ref_impl->msg_ref.base.msg_ref_element.base.nested_element.ops =
         AXIS2_MALLOC(env->allocator,
-                sizeof(woden_nested_element_ops_t));
+							sizeof(woden_nested_element_ops_t));
     woden_nested_element_resolve_methods(&(msg_ref_impl->msg_ref.base.
-            msg_ref_element.base.nested_element), env, msg_ref_impl->methods);
+														 msg_ref_element.base.nested_element),
+													  env, msg_ref_impl->methods);
     return msg_ref;
 }
 
@@ -248,19 +259,22 @@
 
     AXIS2_ENV_CHECK(env, NULL);
     if (!msg_ref)
-    {
-        msg_ref_impl = (woden_wsdl10_msg_ref_impl_t *) create(env);
-    }
+		{
+			 msg_ref_impl = (woden_wsdl10_msg_ref_impl_t *) create(env);
+		}
     else
         msg_ref_impl = (woden_wsdl10_msg_ref_impl_t *) msg_ref;
 
-    woden_wsdl10_msg_ref_free_ops(msg_ref, env);
+	 if (msg_ref)
+		  woden_wsdl10_msg_ref_free_ops(msg_ref, env);
 
     msg_ref_impl->msg_ref.base.msg_ref_element.base.configurable_element.ops =
         AXIS2_MALLOC(env->allocator,
-                sizeof(woden_configurable_element_ops_t));
+							sizeof(woden_configurable_element_ops_t));
     woden_configurable_element_resolve_methods(&(msg_ref_impl->msg_ref.base.
-            msg_ref_element.base.configurable_element), env, msg_ref_impl->methods);
+																 msg_ref_element.base.
+																 configurable_element), env,
+															  msg_ref_impl->methods);
     return msg_ref;
 }
 
@@ -273,20 +287,22 @@
 
     AXIS2_ENV_CHECK(env, NULL);
     if (!msg_ref)
-    {
-        msg_ref_impl = (woden_wsdl10_msg_ref_impl_t *) create(env);
-    }
+		{
+			 msg_ref_impl = (woden_wsdl10_msg_ref_impl_t *) create(env);
+		}
     else
         msg_ref_impl = (woden_wsdl10_msg_ref_impl_t *) msg_ref;
 
-    woden_wsdl10_msg_ref_free_ops(msg_ref, env);
+	 if (msg_ref)
+		  woden_wsdl10_msg_ref_free_ops(msg_ref, env);
 
     msg_ref_impl->msg_ref.base.msg_ref_element.base.documentable_element.ops =
         AXIS2_MALLOC(env->allocator,
-                sizeof(woden_documentable_element_ops_t));
+							sizeof(woden_documentable_element_ops_t));
     woden_documentable_element_resolve_methods(&(msg_ref_impl->msg_ref.base.
-            msg_ref_element.base.documentable_element), env,
-            msg_ref_impl->methods);
+																 msg_ref_element.base.
+																 documentable_element), env,
+															  msg_ref_impl->methods);
     return msg_ref;
 }
 
@@ -299,20 +315,25 @@
 
     AXIS2_ENV_CHECK(env, NULL);
     if (!msg_ref)
-    {
-        msg_ref_impl = (woden_wsdl10_msg_ref_impl_t *) create(env);
-    }
+		{
+			 msg_ref_impl = (woden_wsdl10_msg_ref_impl_t *) create(env);
+		}
     else
         msg_ref_impl = (woden_wsdl10_msg_ref_impl_t *) msg_ref;
 
-    woden_wsdl10_msg_ref_free_ops(msg_ref, env);
+	 if (msg_ref)
+		  woden_wsdl10_msg_ref_free_ops(msg_ref, env);
 
     msg_ref_impl->msg_ref.base.nested_configurable.base.
-    configurable.base.documentable.ops = AXIS2_MALLOC(env->allocator,
-            sizeof(woden_documentable_ops_t));
-    woden_documentable_resolve_methods(&(msg_ref_impl->msg_ref.base.
-            nested_configurable.base.configurable.base.documentable), env, NULL,
-            msg_ref_impl->methods);
+		  configurable.base.documentable.ops = AXIS2_MALLOC
+		  (env->allocator,
+			sizeof(woden_documentable_ops_t));
+
+    woden_documentable_resolve_methods(
+		  &(msg_ref_impl->msg_ref.base.
+			 nested_configurable.base.configurable.base.documentable), env, NULL,
+		  msg_ref_impl->methods);
+
     return msg_ref;
 }
 
@@ -325,21 +346,24 @@
 
     AXIS2_ENV_CHECK(env, NULL);
     if (!msg_ref)
-    {
-        msg_ref_impl = (woden_wsdl10_msg_ref_impl_t *) create(env);
-    }
+		{
+			 msg_ref_impl = (woden_wsdl10_msg_ref_impl_t *) create(env);
+		}
     else
         msg_ref_impl = (woden_wsdl10_msg_ref_impl_t *) msg_ref;
 
-    woden_wsdl10_msg_ref_free_ops(msg_ref, env);
+	 if (msg_ref)
+		  woden_wsdl10_msg_ref_free_ops(msg_ref, env);
 
     msg_ref_impl->msg_ref.base.msg_ref_element.base.documentable_element.
-    wsdl_element.base.attr_extensible.ops =
+		  wsdl_element.base.attr_extensible.ops =
         AXIS2_MALLOC(env->allocator,
-                sizeof(woden_attr_extensible_ops_t));
-    woden_attr_extensible_resolve_methods(&(msg_ref_impl->msg_ref.base.
-            msg_ref_element.base.documentable_element.wsdl_element.base.
-            attr_extensible), env, NULL, msg_ref_impl->methods);
+							sizeof(woden_attr_extensible_ops_t));
+    woden_attr_extensible_resolve_methods(
+		  &(msg_ref_impl->msg_ref.base.
+			 msg_ref_element.base.documentable_element.wsdl_element.base.
+			 attr_extensible), env, NULL, msg_ref_impl->methods);
+
     return msg_ref;
 }
 
@@ -353,21 +377,24 @@
 
     AXIS2_ENV_CHECK(env, NULL);
     if (!msg_ref)
-    {
-        msg_ref_impl = (woden_wsdl10_msg_ref_impl_t *) create(env);
-    }
+		{
+			 msg_ref_impl = (woden_wsdl10_msg_ref_impl_t *) create(env);
+		}
     else
         msg_ref_impl = (woden_wsdl10_msg_ref_impl_t *) msg_ref;
 
-    woden_wsdl10_msg_ref_free_ops(msg_ref, env);
+	 if (msg_ref)
+		  woden_wsdl10_msg_ref_free_ops(msg_ref, env);
 
     msg_ref_impl->msg_ref.base.msg_ref_element.base.documentable_element.
-    wsdl_element.base.element_extensible.ops =
+		  wsdl_element.base.element_extensible.ops =
         AXIS2_MALLOC(env->allocator,
-                sizeof(woden_element_extensible_ops_t));
-    woden_element_extensible_resolve_methods(&(msg_ref_impl->msg_ref.base.
-            msg_ref_element.base.documentable_element.wsdl_element.base.
-            element_extensible), env, NULL, msg_ref_impl->methods);
+							sizeof(woden_element_extensible_ops_t));
+    woden_element_extensible_resolve_methods(
+		  &(msg_ref_impl->msg_ref.base.
+			 msg_ref_element.base.documentable_element.wsdl_element.base.
+			 element_extensible), env, NULL, msg_ref_impl->methods);
+
     return msg_ref;
 }
 
@@ -380,7 +407,7 @@
 
     AXIS2_ENV_CHECK(env, NULL);
     msg_ref_impl = AXIS2_MALLOC(env->allocator,
-            sizeof(woden_wsdl10_msg_ref_impl_t));
+										  sizeof(woden_wsdl10_msg_ref_impl_t));
 
     msg_ref_impl->obj_type = WODEN_WSDL10_MSG_REF;
     msg_ref_impl->super = NULL;
@@ -391,24 +418,24 @@
     msg_ref_impl->msg_ref.base.msg_ref_element.ops = NULL;
     msg_ref_impl->msg_ref.base.nested_configurable.ops = NULL;
     msg_ref_impl->msg_ref.base.nested_configurable.base.
-    nested_component.ops = NULL;
+		  nested_component.ops = NULL;
     msg_ref_impl->msg_ref.base.nested_configurable.base.configurable.ops =
         NULL;
     msg_ref_impl->msg_ref.base.msg_ref_element.base.
-    nested_element.ops = NULL;
+		  nested_element.ops = NULL;
     msg_ref_impl->msg_ref.base.msg_ref_element.base.
-    configurable_element.ops = NULL;
+		  configurable_element.ops = NULL;
     msg_ref_impl->msg_ref.base.msg_ref_element.base.
-    documentable_element.ops = NULL;
+		  documentable_element.ops = NULL;
     msg_ref_impl->msg_ref.base.nested_configurable.base.configurable.base.
-    documentable.ops = NULL;
+		  documentable.ops = NULL;
     msg_ref_impl->msg_ref.base.msg_ref_element.base.
-    documentable_element.wsdl_element.base.attr_extensible.ops = NULL;
+		  documentable_element.wsdl_element.base.attr_extensible.ops = NULL;
     msg_ref_impl->msg_ref.base.msg_ref_element.base.
-    documentable_element.wsdl_element.base.element_extensible.ops = NULL;
+		  documentable_element.wsdl_element.base.element_extensible.ops = NULL;
 
     msg_ref_impl->msg_ref.ops = AXIS2_MALLOC(env->allocator,
-            sizeof(woden_wsdl10_msg_ref_ops_t));
+															sizeof(woden_wsdl10_msg_ref_ops_t));
 
     msg_ref_impl->msg_ref.ops->free = woden_wsdl10_msg_ref_free;
     msg_ref_impl->msg_ref.ops->super_objs = woden_wsdl10_msg_ref_super_objs;
@@ -422,32 +449,32 @@
 
     msg_ref_impl->methods = axis2_hash_make(env);
     if (!msg_ref_impl->methods)
-    {
-        AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
-        return NULL;
-    }
+		{
+			 AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
+			 return NULL;
+		}
     axis2_hash_set(msg_ref_impl->methods, "free", AXIS2_HASH_KEY_STRING,
-            woden_wsdl10_msg_ref_free);
+						 woden_wsdl10_msg_ref_free);
     axis2_hash_set(msg_ref_impl->methods, "super_objs",
-            AXIS2_HASH_KEY_STRING, woden_wsdl10_msg_ref_super_objs);
+						 AXIS2_HASH_KEY_STRING, woden_wsdl10_msg_ref_super_objs);
     axis2_hash_set(msg_ref_impl->methods, "type",
-            AXIS2_HASH_KEY_STRING, woden_wsdl10_msg_ref_type);
+						 AXIS2_HASH_KEY_STRING, woden_wsdl10_msg_ref_type);
 
     axis2_hash_set(msg_ref_impl->methods, "get_qname",
-            AXIS2_HASH_KEY_STRING,
-            woden_wsdl10_msg_ref_get_qname);
+						 AXIS2_HASH_KEY_STRING,
+						 woden_wsdl10_msg_ref_get_qname);
     axis2_hash_set(msg_ref_impl->methods, "to_element",
-            AXIS2_HASH_KEY_STRING,
-            woden_wsdl10_msg_ref_to_element);
+						 AXIS2_HASH_KEY_STRING,
+						 woden_wsdl10_msg_ref_to_element);
     axis2_hash_set(msg_ref_impl->methods, "set_qname",
-            AXIS2_HASH_KEY_STRING,
-            woden_wsdl10_msg_ref_set_qname);
+						 AXIS2_HASH_KEY_STRING,
+						 woden_wsdl10_msg_ref_set_qname);
     axis2_hash_set(msg_ref_impl->methods, "set_part",
-            AXIS2_HASH_KEY_STRING,
-            woden_wsdl10_msg_ref_set_part);
+						 AXIS2_HASH_KEY_STRING,
+						 woden_wsdl10_msg_ref_set_part);
     axis2_hash_set(msg_ref_impl->methods, "get_part",
-            AXIS2_HASH_KEY_STRING,
-            woden_wsdl10_msg_ref_get_part);
+						 AXIS2_HASH_KEY_STRING,
+						 woden_wsdl10_msg_ref_get_part);
 
     return &(msg_ref_impl->msg_ref);
 }
@@ -465,20 +492,20 @@
 
     msg_ref_impl->super = axis2_hash_make(env);
     if (!msg_ref_impl->super)
-    {
-        AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
-        return NULL;
-    }
+		{
+			 AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
+			 return NULL;
+		}
     axis2_hash_set(msg_ref_impl->super, "WODEN_WSDL10_MSG_REF",
-            AXIS2_HASH_KEY_STRING,
-            &(msg_ref_impl->msg_ref));
+						 AXIS2_HASH_KEY_STRING,
+						 &(msg_ref_impl->msg_ref));
     axis2_hash_set(msg_ref_impl->super, "WODEN_NESTED_CONFIGURABLE",
-            AXIS2_HASH_KEY_STRING,
-            msg_ref_impl->nested_configurable);
+						 AXIS2_HASH_KEY_STRING,
+						 msg_ref_impl->nested_configurable);
     configurable = WODEN_NESTED_CONFIGURABLE_GET_BASE_IMPL(
-                msg_ref_impl->nested_configurable, env);
+		  msg_ref_impl->nested_configurable, env);
     axis2_hash_set(msg_ref_impl->super, "WODEN_CONFIGURABLE",
-            AXIS2_HASH_KEY_STRING, configurable);
+						 AXIS2_HASH_KEY_STRING, configurable);
 
     return &(msg_ref_impl->msg_ref);
 }
@@ -494,93 +521,93 @@
     msg_ref_impl = INTF_TO_IMPL(msg_ref);
 
     if (msg_ref_impl->msg_ref.base.msg_ref_element.ops)
-    {
-        AXIS2_FREE(env->allocator, msg_ref_impl->msg_ref.base.
-                msg_ref_element.ops);
-        msg_ref_impl->msg_ref.base.msg_ref_element.ops = NULL;
-    }
+		{
+			 AXIS2_FREE(env->allocator, msg_ref_impl->msg_ref.base.
+							msg_ref_element.ops);
+			 msg_ref_impl->msg_ref.base.msg_ref_element.ops = NULL;
+		}
 
     if (msg_ref_impl->msg_ref.base.nested_configurable.ops)
-    {
-        AXIS2_FREE(env->allocator, msg_ref_impl->msg_ref.base.
-                nested_configurable.ops);
-        msg_ref_impl->msg_ref.base.nested_configurable.ops =
-            NULL;
-    }
+		{
+			 AXIS2_FREE(env->allocator, msg_ref_impl->msg_ref.base.
+							nested_configurable.ops);
+			 msg_ref_impl->msg_ref.base.nested_configurable.ops =
+				  NULL;
+		}
 
     if (msg_ref_impl->msg_ref.base.nested_configurable.base.
-            nested_component.ops)
-    {
-        AXIS2_FREE(env->allocator, msg_ref_impl->msg_ref.base.
-                nested_configurable.base.nested_component.ops);
-        msg_ref_impl->msg_ref.base.nested_configurable.base.
-        nested_component.ops = NULL;
-    }
+		  nested_component.ops)
+		{
+			 AXIS2_FREE(env->allocator, msg_ref_impl->msg_ref.base.
+							nested_configurable.base.nested_component.ops);
+			 msg_ref_impl->msg_ref.base.nested_configurable.base.
+				  nested_component.ops = NULL;
+		}
 
     if (msg_ref_impl->msg_ref.base.nested_configurable.base.
-            configurable.ops)
-    {
-        AXIS2_FREE(env->allocator, msg_ref_impl->msg_ref.base.
-                nested_configurable.base.configurable.ops);
-        msg_ref_impl->msg_ref.base.nested_configurable.base.
-        configurable.ops = NULL;
-    }
+		  configurable.ops)
+		{
+			 AXIS2_FREE(env->allocator, msg_ref_impl->msg_ref.base.
+							nested_configurable.base.configurable.ops);
+			 msg_ref_impl->msg_ref.base.nested_configurable.base.
+				  configurable.ops = NULL;
+		}
 
     if (msg_ref_impl->msg_ref.base.msg_ref_element.base.
-            nested_element.ops)
-    {
-        AXIS2_FREE(env->allocator, msg_ref_impl->msg_ref.base.
-                msg_ref_element.base.nested_element.ops);
-        msg_ref_impl->msg_ref.base.msg_ref_element.base.
-        nested_element.ops = NULL;
-    }
+		  nested_element.ops)
+		{
+			 AXIS2_FREE(env->allocator, msg_ref_impl->msg_ref.base.
+							msg_ref_element.base.nested_element.ops);
+			 msg_ref_impl->msg_ref.base.msg_ref_element.base.
+				  nested_element.ops = NULL;
+		}
 
     if (msg_ref_impl->msg_ref.base.msg_ref_element.base.
-            configurable_element.ops)
-    {
-        AXIS2_FREE(env->allocator, msg_ref_impl->msg_ref.base.
-                msg_ref_element.base.configurable_element.ops);
-        msg_ref_impl->msg_ref.base.msg_ref_element.base.
-        configurable_element.ops = NULL;
-    }
+		  configurable_element.ops)
+		{
+			 AXIS2_FREE(env->allocator, msg_ref_impl->msg_ref.base.
+							msg_ref_element.base.configurable_element.ops);
+			 msg_ref_impl->msg_ref.base.msg_ref_element.base.
+				  configurable_element.ops = NULL;
+		}
 
     if (msg_ref_impl->msg_ref.base.msg_ref_element.base.
-            documentable_element.ops)
-    {
-        AXIS2_FREE(env->allocator, msg_ref_impl->msg_ref.base.
-                msg_ref_element.base.documentable_element.ops);
-        msg_ref_impl->msg_ref.base.msg_ref_element.base.
-        documentable_element.ops = NULL;
-    }
+		  documentable_element.ops)
+		{
+			 AXIS2_FREE(env->allocator, msg_ref_impl->msg_ref.base.
+							msg_ref_element.base.documentable_element.ops);
+			 msg_ref_impl->msg_ref.base.msg_ref_element.base.
+				  documentable_element.ops = NULL;
+		}
 
     if (msg_ref_impl->msg_ref.base.nested_configurable.base.
-            configurable.base.documentable.ops)
-    {
-        AXIS2_FREE(env->allocator, msg_ref_impl->msg_ref.base.
-                nested_configurable.base.configurable.base.documentable.ops);
-        msg_ref_impl->msg_ref.base.nested_configurable.base.
-        configurable.base.documentable.ops = NULL;
-    }
+		  configurable.base.documentable.ops)
+		{
+			 AXIS2_FREE(env->allocator, msg_ref_impl->msg_ref.base.
+							nested_configurable.base.configurable.base.documentable.ops);
+			 msg_ref_impl->msg_ref.base.nested_configurable.base.
+				  configurable.base.documentable.ops = NULL;
+		}
 
     if (msg_ref_impl->msg_ref.base.msg_ref_element.base.
-            documentable_element.wsdl_element.base.attr_extensible.ops)
-    {
-        AXIS2_FREE(env->allocator, msg_ref_impl->msg_ref.base.
-                msg_ref_element.base.documentable_element.wsdl_element.base.
-                attr_extensible.ops);
-        msg_ref_impl->msg_ref.base.msg_ref_element.base.
-        documentable_element.wsdl_element.base.attr_extensible.ops = NULL;
-    }
+		  documentable_element.wsdl_element.base.attr_extensible.ops)
+		{
+			 AXIS2_FREE(env->allocator, msg_ref_impl->msg_ref.base.
+							msg_ref_element.base.documentable_element.wsdl_element.base.
+							attr_extensible.ops);
+			 msg_ref_impl->msg_ref.base.msg_ref_element.base.
+				  documentable_element.wsdl_element.base.attr_extensible.ops = NULL;
+		}
 
     if (msg_ref_impl->msg_ref.base.msg_ref_element.base.
-            documentable_element.wsdl_element.base.element_extensible.ops)
-    {
-        AXIS2_FREE(env->allocator, msg_ref_impl->msg_ref.base.
-                msg_ref_element.base.documentable_element.wsdl_element.base.
-                element_extensible.ops);
-        msg_ref_impl->msg_ref.base.msg_ref_element.base.
-        documentable_element.wsdl_element.base.element_extensible.ops = NULL;
-    }
+		  documentable_element.wsdl_element.base.element_extensible.ops)
+		{
+			 AXIS2_FREE(env->allocator, msg_ref_impl->msg_ref.base.
+							msg_ref_element.base.documentable_element.wsdl_element.base.
+							element_extensible.ops);
+			 msg_ref_impl->msg_ref.base.msg_ref_element.base.
+				  documentable_element.wsdl_element.base.element_extensible.ops = NULL;
+		}
 
 
     return AXIS2_SUCCESS;
@@ -598,49 +625,50 @@
     msg_ref_impl = INTF_TO_IMPL(msg_ref);
 
     if (msg_ref_impl->f_qname)
-    {
-        AXIS2_QNAME_FREE(msg_ref_impl->f_qname, env);
-        msg_ref_impl->f_qname = NULL;
-    }
+		{
+			 AXIS2_QNAME_FREE(msg_ref_impl->f_qname, env);
+			 msg_ref_impl->f_qname = NULL;
+		}
 
     if (msg_ref_impl->f_part)
-    {
-        WODEN_WSDL10_PART_FREE(msg_ref_impl->f_part, env);
-        msg_ref_impl->f_part = NULL;
-    }
+		{
+			 WODEN_WSDL10_PART_FREE(msg_ref_impl->f_part, env);
+			 msg_ref_impl->f_part = NULL;
+		}
 
     if (msg_ref_impl->super)
-    {
-        axis2_hash_free(msg_ref_impl->super, env);
-        msg_ref_impl->super = NULL;
-    }
+		{
+			 axis2_hash_free(msg_ref_impl->super, env);
+			 msg_ref_impl->super = NULL;
+		}
 
     if (msg_ref_impl->methods)
-    {
-        axis2_hash_free(msg_ref_impl->methods, env);
-        msg_ref_impl->methods = NULL;
-    }
+		{
+			 axis2_hash_free(msg_ref_impl->methods, env);
+			 msg_ref_impl->methods = NULL;
+		}
 
     if (msg_ref_impl->nested_configurable)
-    {
-        WODEN_NESTED_CONFIGURABLE_FREE(msg_ref_impl->
-                nested_configurable, env);
-        msg_ref_impl->nested_configurable = NULL;
-    }
+		{
+			 WODEN_NESTED_CONFIGURABLE_FREE(msg_ref_impl->
+													  nested_configurable, env);
+			 msg_ref_impl->nested_configurable = NULL;
+		}
 
-    woden_wsdl10_msg_ref_free_ops(msg_ref, env);
+	 if (msg_ref)
+		  woden_wsdl10_msg_ref_free_ops(msg_ref, env);
 
     if ((&(msg_ref_impl->msg_ref))->ops)
-    {
-        AXIS2_FREE(env->allocator, (&(msg_ref_impl->msg_ref))->ops);
-        (&(msg_ref_impl->msg_ref))->ops = NULL;
-    }
+		{
+			 AXIS2_FREE(env->allocator, (&(msg_ref_impl->msg_ref))->ops);
+			 (&(msg_ref_impl->msg_ref))->ops = NULL;
+		}
 
     if (msg_ref_impl)
-    {
-        AXIS2_FREE(env->allocator, msg_ref_impl);
-        msg_ref_impl = NULL;
-    }
+		{
+			 AXIS2_FREE(env->allocator, msg_ref_impl);
+			 msg_ref_impl = NULL;
+		}
     return AXIS2_SUCCESS;
 }
 
@@ -697,20 +725,20 @@
     msg_ref_impl_l = INTF_TO_IMPL(msg_ref_impl);
 
     msg_ref->ops->free = axis2_hash_get(methods, "free",
-            AXIS2_HASH_KEY_STRING);
+													 AXIS2_HASH_KEY_STRING);
     msg_ref->ops->super_objs = axis2_hash_get(methods, "super_objs",
-            AXIS2_HASH_KEY_STRING);
+															 AXIS2_HASH_KEY_STRING);
     msg_ref->ops->type = axis2_hash_get(methods, "type",
-            AXIS2_HASH_KEY_STRING);
+													 AXIS2_HASH_KEY_STRING);
 
     msg_ref->ops->get_qname = axis2_hash_get(methods,
-            "get_qname", AXIS2_HASH_KEY_STRING);
+															"get_qname", AXIS2_HASH_KEY_STRING);
     if (!msg_ref->ops->get_qname && msg_ref_impl_l)
         msg_ref->ops->get_qname =
             msg_ref_impl_l->msg_ref.ops->get_qname;
 
     msg_ref->ops->to_element = axis2_hash_get(methods,
-            "to_element", AXIS2_HASH_KEY_STRING);
+															 "to_element", AXIS2_HASH_KEY_STRING);
     if (!msg_ref->ops->to_element && msg_ref_impl_l)
         msg_ref->ops->to_element =
             msg_ref_impl_l->msg_ref.ops->to_element;
@@ -733,7 +761,8 @@
     AXIS2_ENV_CHECK(env, NULL);
     super = WODEN_WSDL10_MSG_REF_SUPER_OBJS(msg_ref, env);
     msg_ref_impl = INTF_TO_IMPL(axis2_hash_get(super,
-            "WODEN_WSDL10_MSG_REF", AXIS2_HASH_KEY_STRING));
+															  "WODEN_WSDL10_MSG_REF", 
+															  AXIS2_HASH_KEY_STRING));
 
     return msg_ref_impl->f_qname;
 }
@@ -749,7 +778,8 @@
     AXIS2_ENV_CHECK(env, NULL);
     super = WODEN_WSDL10_MSG_REF_SUPER_OBJS(msg_ref, env);
     msg_ref_impl = INTF_TO_IMPL(axis2_hash_get(super,
-            "WODEN_WSDL10_MSG_REF", AXIS2_HASH_KEY_STRING));
+															  "WODEN_WSDL10_MSG_REF", 
+															  AXIS2_HASH_KEY_STRING));
 
     return &(msg_ref_impl->msg_ref);
 }
@@ -771,13 +801,14 @@
     AXIS2_PARAM_CHECK(env->error, qname, AXIS2_FAILURE);
     super = WODEN_WSDL10_MSG_REF_SUPER_OBJS(msg_ref, env);
     msg_ref_impl = INTF_TO_IMPL(axis2_hash_get(super,
-            "WODEN_WSDL10_MSG_REF", AXIS2_HASH_KEY_STRING));
+															  "WODEN_WSDL10_MSG_REF", 
+															  AXIS2_HASH_KEY_STRING));
 
     if (msg_ref_impl->f_qname)
-    {
-        AXIS2_QNAME_FREE(msg_ref_impl->f_qname, env);
-        msg_ref_impl->f_qname = NULL;
-    }
+		{
+			 AXIS2_QNAME_FREE(msg_ref_impl->f_qname, env);
+			 msg_ref_impl->f_qname = NULL;
+		}
     msg_ref_impl->f_qname = AXIS2_QNAME_CLONE(qname, env);
 
     return AXIS2_SUCCESS;
@@ -796,12 +827,13 @@
     AXIS2_PARAM_CHECK(env->error, part, AXIS2_FAILURE);
     super = WODEN_WSDL10_MSG_REF_SUPER_OBJS(msg_ref, env);
     msg_ref_impl = INTF_TO_IMPL(axis2_hash_get(super,
-            "WODEN_WSDL10_MSG_REF", AXIS2_HASH_KEY_STRING));
+															  "WODEN_WSDL10_MSG_REF", 
+															  AXIS2_HASH_KEY_STRING));
 
     if (!msg_ref_impl->f_part)
-    {
-        /* TODO */
-    }
+		{
+			 /* TODO */
+		}
     msg_ref_impl->f_part = part;
 
 
@@ -819,7 +851,8 @@
     AXIS2_ENV_CHECK(env, NULL);
     super = WODEN_WSDL10_MSG_REF_SUPER_OBJS(msg_ref, env);
     msg_ref_impl = INTF_TO_IMPL(axis2_hash_get(super,
-            "WODEN_WSDL10_MSG_REF", AXIS2_HASH_KEY_STRING));
+															  "WODEN_WSDL10_MSG_REF",
+															  AXIS2_HASH_KEY_STRING));
 
     return msg_ref_impl->f_part;
 }



---------------------------------------------------------------------
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