--------------------- PatchSet 464 Date: 2002/12/23 23:27:33 Author: rbcollins Branch: esi Tag: (none) Log: prevent refcounted lists deallocating during traversal Members: include/RefCount.h:1.1.4.4->1.1.4.5 Index: squid3/include/RefCount.h =================================================================== RCS file: /cvsroot/squid-sf//squid3/include/RefCount.h,v retrieving revision 1.1.4.4 retrieving revision 1.1.4.5 diff -u -r1.1.4.4 -r1.1.4.5 --- squid3/include/RefCount.h 21 Dec 2002 13:06:08 -0000 1.1.4.4 +++ squid3/include/RefCount.h 23 Dec 2002 23:27:33 -0000 1.1.4.5 @@ -1,6 +1,6 @@ /* - * $Id: RefCount.h,v 1.1.4.4 2002/12/21 13:06:08 rbcollins Exp $ + * $Id: RefCount.h,v 1.1.4.5 2002/12/23 23:27:33 rbcollins Exp $ * * DEBUG: section xx Refcount allocator * AUTHOR: Robert Collins @@ -53,9 +53,10 @@ { // DO NOT CHANGE THE ORDER HERE!!! // This preserves semantics on self assignment + C const *newP_ = p.p_; reference(p); dereference(); - p_ = p.p_; + p_ = newP_; return *this; } C const * operator-> () const {return p_; }