From 68e76e74c4bf87f3d796fe0c8aaaf17175c076c30876332c936680b2540abba0 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Fri, 29 Jan 2016 00:50:12 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/gsoap?expand=0&rev=49 --- gsoap-allocator.diff | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) 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)