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 09:30:46 +0200 |
commit | 1a445225f6638839dec7cfc8822f1218c74c974f (patch) | |
tree | f962af26337c8d0c7578fc765dfab8e1a3a69d4a /contrib/debian/bitcoin-qt.desktop | |
parent | 0a0cd345520382bd726fef50c62864715b03f164 (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).
Diffstat (limited to 'contrib/debian/bitcoin-qt.desktop')
0 files changed, 0 insertions, 0 deletions