Module: sems Branch: master Commit: a238c4c0f108bfbb15dd3d4240a804e4175dfae7 URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sems/?a=commit;h=a238c4c0f108bfbb15dd3d4240a804e4175dfae7
Author: Stefan Sayer <[email protected]> Committer: Stefan Sayer <[email protected]> Date: Wed Oct 12 00:29:51 2011 +0200 b/f: xmlrpc++: do delete this only after last member access --- apps/xmlrpc2di/xmlrpc++/src/XmlRpcSource.cpp | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/apps/xmlrpc2di/xmlrpc++/src/XmlRpcSource.cpp b/apps/xmlrpc2di/xmlrpc++/src/XmlRpcSource.cpp index a371d6a..17c512e 100644 --- a/apps/xmlrpc2di/xmlrpc++/src/XmlRpcSource.cpp +++ b/apps/xmlrpc2di/xmlrpc++/src/XmlRpcSource.cpp @@ -26,16 +26,16 @@ namespace XmlRpc { XmlRpcUtil::log(2,"XmlRpcSource::close: done closing socket %d.", _fd); _fd = -1; } - if (_deleteOnClose) { - XmlRpcUtil::log(2,"XmlRpcSource::close: deleting this"); - _deleteOnClose = false; - delete this; - } if (_ssl_ssl != (SSL *) NULL) { SSL_shutdown (_ssl_ssl); SSL_free (_ssl_ssl); SSL_CTX_free (_ssl_ctx); } + if (_deleteOnClose) { + XmlRpcUtil::log(2,"XmlRpcSource::close: deleting this"); + _deleteOnClose = false; + delete this; + } } } // namespace XmlRpc _______________________________________________ Semsdev mailing list [email protected] http://lists.iptel.org/mailman/listinfo/semsdev
