code style & change log update for PR
This commit is contained in:
1 parent
1f504001d2
commit
95551e7e94
2 files changed
+8
-6
No files matched your search
@@ -1,5 +1,7 @@
|
||||
HEAD
|
||||
- Improvement: Better automatic std::chrono feature detection for Visual Studio
|
||||
- Bug: Fix memory leak when init_asio produces an error. #454 Thank you Mark Grimes for
|
||||
reporting and fixing.
|
||||
|
||||
0.6.0
|
||||
- MINOR BREAKING TRANSPORT POLICY CHANGE: Custom transport policies will now be
|
||||
|
||||
@@ -219,9 +219,9 @@ public:
|
||||
*/
|
||||
void init_asio(lib::error_code & ec) {
|
||||
// Use a smart pointer until the call is successful and ownership has successfully been taken
|
||||
lib::auto_ptr<lib::asio::io_service> pService(new lib::asio::io_service());
|
||||
init_asio(pService.get(), ec);
|
||||
if( !ec ) pService.release(); // Call was successful, transfer ownership
|
||||
lib::auto_ptr<lib::asio::io_service> service(new lib::asio::io_service());
|
||||
init_asio(service.get(), ec);
|
||||
if( !ec ) service.release(); // Call was successful, transfer ownership
|
||||
m_external_io_service = false;
|
||||
}
|
||||
|
||||
@@ -234,10 +234,10 @@ public:
|
||||
*/
|
||||
void init_asio() {
|
||||
// Use a smart pointer until the call is successful and ownership transferred
|
||||
lib::auto_ptr<lib::asio::io_service> pService(new lib::asio::io_service());
|
||||
init_asio( pService.get() );
|
||||
lib::auto_ptr<lib::asio::io_service> service(new lib::asio::io_service());
|
||||
init_asio( service.get() );
|
||||
// If control got this far without an exception, then ownership has successfully been taken
|
||||
pService.release();
|
||||
service.release();
|
||||
m_external_io_service = false;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user