axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dami...@apache.org
Subject svn commit: r413593 - /webservices/axis2/trunk/c/woden/src/builder/reader.c
Date Mon, 12 Jun 2006 07:00:19 GMT
Author: damitha
Date: Mon Jun 12 00:00:19 2006
New Revision: 413593

URL: http://svn.apache.org/viewvc?rev=413593&view=rev
Log:
reader is now compiling without warnings

Modified:
    webservices/axis2/trunk/c/woden/src/builder/reader.c

Modified: webservices/axis2/trunk/c/woden/src/builder/reader.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/woden/src/builder/reader.c?rev=413593&r1=413592&r2=413593&view=diff
==============================================================================
--- webservices/axis2/trunk/c/woden/src/builder/reader.c (original)
+++ webservices/axis2/trunk/c/woden/src/builder/reader.c Mon Jun 12 00:00:19 2006
@@ -129,6 +129,7 @@
     /* A map of imported schema definitions keyed by schema location URI */
     axis2_hash_t *f_imported_schemas;
     axis2_woden_ext_registry_t *f_ext_reg;
+    axis2_uri_t *f_uri;
 
 };
 
@@ -449,6 +450,7 @@
 
     reader_impl->f_imported_schemas = NULL;
     reader_impl->f_ext_reg = NULL;
+    reader_impl->f_uri = NULL;
     
     reader_impl->reader.ops = AXIS2_MALLOC(env->allocator, 
                     sizeof(woden_reader_ops_t));
@@ -499,6 +501,12 @@
         reader_impl->f_ext_reg = NULL;
     }
 
+    if(reader_impl->f_uri)
+    {
+        AXIS2_URI_FREE(reader_impl->f_uri, env);
+        reader_impl->f_uri = NULL;
+    }
+
     if((&(reader_impl->reader))->ops)
     {
         AXIS2_FREE(env->allocator, (&(reader_impl->reader))->ops);
@@ -3751,13 +3759,13 @@
     AXIS2_PARAM_CHECK(env->error, uri_str, NULL);
     reader_impl = INTF_TO_IMPL(reader);
 
-    if(reader_impl->uri)
+    if(reader_impl->f_uri)
     {
-        AXIS2_URI_FREE(reader_impl->uri, env);
-        reader_impl->uri = NULL;
+        AXIS2_URI_FREE(reader_impl->f_uri, env);
+        reader_impl->f_uri = NULL;
     }
-    reader_impl->uri = axis2_uri_parse_string(env, uri_str);
+    reader_impl->f_uri = axis2_uri_parse_string(env, uri_str);
     
-    return reader_impl->uri;
+    return reader_impl->f_uri;
 }
 



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