diff options
author | Benjamin Dauvergne <bdauvergne@entrouvert.com> | 2008-11-04 01:58:49 +0000 |
---|---|---|
committer | Benjamin Dauvergne <bdauvergne@entrouvert.com> | 2008-11-04 01:58:49 +0000 |
commit | 0d66367f2892a9f1e18fde1e6984bef65c5bd732 (patch) | |
tree | 7fa6f8533cb652ef3a681c681c764f1974c4199f /bindings | |
parent | e6b196279f38b80170efd8d0748b31b489f04b15 (diff) | |
download | lasso-0d66367f2892a9f1e18fde1e6984bef65c5bd732.tar.gz lasso-0d66367f2892a9f1e18fde1e6984bef65c5bd732.tar.xz lasso-0d66367f2892a9f1e18fde1e6984bef65c5bd732.zip |
Remove use of xmlFreeDoc for lasso_release_doc
- bindings/java/wrapper_top.c, bindings/php4/lasso_php4_helper.c,
bindings/php5/wrapper_source_top.c, bindings/python/wrapper_top.c,
lasso/id-ff/identity.c, lasso/id-ff/lecp.c, lasso/id-ff/login.c,
lasso/id-ff/logout.c, lasso/id-ff/name_registration.c,
lasso/id-ff/profile.c, lasso/id-ff/provider.c, lasso/id-ff/server.c,
lasso/id-ff/session.c, lasso/id-wsf-2.0/data_service.c,
lasso/id-wsf/data_service.c, lasso/id-wsf/discovery.c,
lasso/id-wsf/wsf_profile.c, lasso/saml-2.0/ecp.c,
lasso/saml-2.0/login.c, lasso/saml-2.0/name_id_management.c,
lasso/utils.h, lasso/xml/tools.c, lasso/xml/xml.c, swig/Lasso.i:
Remove use of xmlFreeDoc. Use lasso_release_doc instead.
Diffstat (limited to 'bindings')
-rw-r--r-- | bindings/java/wrapper_top.c | 3 | ||||
-rw-r--r-- | bindings/php4/lasso_php4_helper.c | 3 | ||||
-rw-r--r-- | bindings/php5/wrapper_source_top.c | 3 | ||||
-rw-r--r-- | bindings/python/wrapper_top.c | 3 |
4 files changed, 8 insertions, 4 deletions
diff --git a/bindings/java/wrapper_top.c b/bindings/java/wrapper_top.c index 5c7d6907..c27ca23e 100644 --- a/bindings/java/wrapper_top.c +++ b/bindings/java/wrapper_top.c @@ -6,6 +6,7 @@ #include "com_entrouvert_lasso_LassoJNI.h" #include <string.h> #include "../ghashtable.h" +#include "../../lasso/utils.h" #define LASSO_ROOT "com/entrouvert/lasso/" #define check_exception (*env)->ExceptionCheck(env) @@ -337,7 +338,7 @@ jstring_to_xml_node(JNIEnv *env, jstring jstr, xmlNode **xmlnode) { out: *xmlnode = node; if (doc) - xmlFreeDoc(doc); + lasso_release_doc(doc); if (jstr && local_str) release_local_string(env, jstr, local_str); return ret; diff --git a/bindings/php4/lasso_php4_helper.c b/bindings/php4/lasso_php4_helper.c index 6bdc3bb2..bf4f2893 100644 --- a/bindings/php4/lasso_php4_helper.c +++ b/bindings/php4/lasso_php4_helper.c @@ -6,6 +6,7 @@ #undef PACKAGE_VERSION #include <lasso/lasso.h> #include "php_lasso.h" +#include "../../lasso/utils.h" /* utility functions */ static void free_glist(GList **list, GFunc free_function); @@ -149,7 +150,7 @@ get_xml_node_from_string(char *string) if (node != NULL) { node = xmlCopyNode(node, 1); } - xmlFreeDoc(doc); + lasso_release_doc(doc); return node; } diff --git a/bindings/php5/wrapper_source_top.c b/bindings/php5/wrapper_source_top.c index c8d9eee1..8969408b 100644 --- a/bindings/php5/wrapper_source_top.c +++ b/bindings/php5/wrapper_source_top.c @@ -7,6 +7,7 @@ #include <lasso/lasso.h> #include "php_lasso.h" #include "../ghashtable.h" +#include "../../lasso/utils.h" /* utility functions */ static void free_glist(GList **list, GFunc free_function); @@ -133,7 +134,7 @@ get_xml_node_from_string(char *string) if (node != NULL) { node = xmlCopyNode(node, 1); } - xmlFreeDoc(doc); + lasso_release_doc(doc); return node; } diff --git a/bindings/python/wrapper_top.c b/bindings/python/wrapper_top.c index b40c39f5..cb704aaa 100644 --- a/bindings/python/wrapper_top.c +++ b/bindings/python/wrapper_top.c @@ -4,6 +4,7 @@ #include <config.h> #include "../ghashtable.h" #include "../../lasso/debug.h" +#include "../../lasso/utils.h" GQuark lasso_wrapper_key; @@ -254,7 +255,7 @@ get_xml_node_from_pystring(PyObject *string) { if (node != NULL) { node = xmlCopyNode(node, 1); } - xmlFreeDoc(doc); + lasso_release_doc(doc); return node; } |