Fix last change to set_selection_owner, selection_clear resets
authorsf-exg <sf-exg>
Mon, 22 Feb 2010 09:47:41 +0000 (09:47 +0000)
committersf-exg <sf-exg>
Mon, 22 Feb 2010 09:47:41 +0000 (09:47 +0000)
{selection,clipboard}_owner so we cannot use a reference to call flush.

src/rxvttoolkit.C

index 77c908f..5f70647 100644 (file)
@@ -609,8 +609,9 @@ void rxvt_display::set_selection_owner (rxvt_term *owner, bool clipboard)
 
   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;