Fix memleak in TorController [rework]
Fix memleak in TorController [rework]

It looks like, TorController::disconnected_cb(TorControlConnection&
conn) gets called multiple times which results in multiple event_new().

Avoid this by creating the event only once in the constructore, and
deleting it only once in the destructor (thanks to Cory Fields for the
idea).

Replaces the fix by Jonas Schnelli in #7610, see discussion there.

Github-Pull: #7637
Rebased-From: e2195037116f47b11b66452351dba4fe606423a2

faircoin/faircoin,faircoin/faircoin2,faircoin/faircoin,jaromil/faircoin2,faircoin/faircoin2,jaromil/faircoin2,faircoin/faircoin2,faircoin/faircoin,faircoin/faircoin2,jaromil/faircoin2,jaromil/faircoin2,faircoin/faircoin2,faircoin/faircoin,jaromil/faircoin2,faircoin/faircoin,faircoin/faircoin2,jaromil/faircoin2,faircoin/faircoin