WARNING: big WvStreamClone change in here (and fixing of all things it broke).
WARNING: big WvStreamClone change in here (and fixing of all things it
broke).

WvStreamClone changed to take a WvStream* instead of a WvStream**, so you
can just give it a NULL instead of pointing to a WvStream* of yours, then
set WvStreamClone::cloned. WvStreamClone changed from not owning the cloned
stream to owning it (it WILL delete it in its destructor!). If you don't
want it to delete the cloned stream, set WvStreamClone::cloned to NULL
before deleting the WvStreamClone.

So in summary, you don't have to keep a redundant WvStream* anymore, you
don't have to (and SHOULDN'T!) delete the cloned stream, so you can just
go and do crazy things like WvStream* mystream = new
WvCompressStream(new WvSSLStream(listener->accept())); and then just
delete mystream without any remorse (it's just like shell pipes!).


git-svn-id: 4a4e6d3f3969003d0af9593019da3e8c357e24a8@844 6619c942-59fa-0310-bf43-a07aaa81d9ac

wlach/retchmail