(#2337) - fix replication event listener memory leak

I think I figured this out, need @calvinmetcalf to verify though.