--- rxvt-unicode/src/rxvtutil.h 2012/05/25 07:49:20 1.56 +++ rxvt-unicode/src/rxvtutil.h 2012/05/25 18:49:59 1.57 @@ -137,15 +137,13 @@ // void because it makes sense in our context void operator =(auto_ptr &a) { - *this = a.p; - a.p = 0; + reset (a.release ()); } template void operator =(auto_ptr &a) { - *this = a.p; - a.p = 0; + reset (a.release ()); } T *operator ->() const { return p; }