diff --git a/libtransmission/trevent.cc b/libtransmission/trevent.cc index 2bf8554e7..abf254185 100644 --- a/libtransmission/trevent.cc +++ b/libtransmission/trevent.cc @@ -265,7 +265,7 @@ static void libeventThreadFunc(void* veh) /* shut down the thread */ event_base_free(base); eh->session->events = nullptr; - tr_free(eh); + delete eh; tr_logAddDebug("Closing libevent thread"); }