diff --git a/gsoap-allocator.diff b/gsoap-allocator.diff index d81c8cf..5f9c781 100644 --- a/gsoap-allocator.diff +++ b/gsoap-allocator.diff @@ -1,8 +1,8 @@ References: http://sf.net/p/gsoap2/bugs/1007/ --- - gsoap/stdsoap2.cpp | 17 +++++++++++++++-- - 1 file changed, 15 insertions(+), 2 deletions(-) + gsoap/stdsoap2.cpp | 21 +++++++++++++++++++-- + 1 file changed, 19 insertions(+), 2 deletions(-) Index: gsoap-2.8.22/gsoap/stdsoap2.cpp =================================================================== @@ -23,7 +23,19 @@ Index: gsoap-2.8.22/gsoap/stdsoap2.cpp if (soap) soap_versioning(soap_init)(soap, imode, omode); return soap; -@@ -8981,7 +8987,14 @@ SOAP_FMAC1 +@@ -7268,7 +7274,11 @@ void + SOAP_FMAC2 + soap_free(struct soap *soap) + { soap_done(soap); ++#ifdef __cplusplus ++ SOAP_DELETE(soap); ++#else + free(soap); ++#endif + } + #endif + +@@ -8981,7 +8991,14 @@ SOAP_FMAC1 struct soap* SOAP_FMAC2 soap_copy(const struct soap *soap)