--- rxvt-unicode/src/rxvttoolkit.C 2007/12/24 08:00:18 1.86 +++ rxvt-unicode/src/rxvttoolkit.C 2007/12/24 08:21:39 1.87 @@ -602,8 +602,10 @@ { if (selection_owner && selection_owner != owner) { - selection_owner->selection_clear (); - flush (); + rxvt_term *owner = selection_owner; + + owner->selection_clear (); + owner->flush (); } selection_owner = owner;