diff --git a/gsoap-allocator.diff b/gsoap-allocator.diff index 5f9c781..769cd0a 100644 --- a/gsoap-allocator.diff +++ b/gsoap-allocator.diff @@ -1,8 +1,8 @@ References: http://sf.net/p/gsoap2/bugs/1007/ --- - gsoap/stdsoap2.cpp | 21 +++++++++++++++++++-- - 1 file changed, 19 insertions(+), 2 deletions(-) + gsoap/stdsoap2.cpp | 28 +++++++++++++++++++++++++--- + 1 file changed, 25 insertions(+), 3 deletions(-) Index: gsoap-2.8.22/gsoap/stdsoap2.cpp =================================================================== @@ -35,7 +35,21 @@ Index: gsoap-2.8.22/gsoap/stdsoap2.cpp } #endif -@@ -8981,7 +8991,14 @@ SOAP_FMAC1 +@@ -7278,7 +7288,12 @@ SOAP_FMAC1 + void + SOAP_FMAC2 + soap_del(struct soap *soap) +-{ free(soap); ++{ ++#ifdef __cplusplus ++ SOAP_DELETE(soap); ++#else ++ free(soap); ++#endif + } + #endif + +@@ -8981,7 +8996,14 @@ SOAP_FMAC1 struct soap* SOAP_FMAC2 soap_copy(const struct soap *soap)