--- rxvt-unicode/src/rxvttoolkit.C 2010/01/30 20:26:04 1.105 +++ rxvt-unicode/src/rxvttoolkit.C 2010/02/22 09:47:41 1.106 @@ -609,8 +609,9 @@ if (cur_owner && cur_owner != owner) { - cur_owner->selection_clear (clipboard); - cur_owner->flush (); + rxvt_term *term = cur_owner; + term->selection_clear (clipboard); + term->flush (); } cur_owner = owner;