diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2014-05-07 09:24:44 +0200 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2014-05-12 17:56:55 +0200 |
commit | 203a0cfa7cb0d7e9f43ad8488ecaf7ffbf40ddfc (patch) | |
tree | 7bb7f6d5284e36246def4b92e5ec6807605ddb6f /src/qt/locale/bitcoin_sr.ts | |
parent | 1ed6d499b6bf02a399fb32059caccdea847335b0 (diff) |
rpc: Make sure conn object is always cleaned up
Make sure conn object always gets cleaned up by using a
`boost::shared_ptr`.
This makes valgrind happy - before this commit, one connection object
always leaked at shutdown, as well as can avoid other leaks, when
for example an exception happens.
Also add an explicit Close() to the !ClientAllowed path to make it similar
to the normal path (I'm not sure whether it is needed, but it
can't hurt).
Rebased-By: Wladimir J. van der Laan
Rebased-From: 1a44522
Diffstat (limited to 'src/qt/locale/bitcoin_sr.ts')
0 files changed, 0 insertions, 0 deletions