aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Gavrilov <angavrilov@gmail.com>2008-11-13 21:52:52 +0300
committerShawn O. Pearce <spearce@spearce.org>2008-11-16 14:02:13 -0800
commit941930732fc0bbffbd19e9fa09fe00bc1512a3a7 (patch)
treef9178d99057521fab4508e289c214febc0a88eb7
parentbd45bd91e6606bea77a02a979a3a48cf058d981d (diff)
downloadgit-941930732fc0bbffbd19e9fa09fe00bc1512a3a7.tar.gz
git-941930732fc0bbffbd19e9fa09fe00bc1512a3a7.tar.xz
git-gui: Fix the search bar destruction handler.
Since delete_this is an ordinary function, it should not be passed to cb; otherwise it produces errors when blame windows are closed. Unfortunately, it is not noticeable when blame is shown in the master window, so I missed this bug. Signed-off-by: Alexander Gavrilov <angavrilov@gmail.com> Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
-rw-r--r--lib/search.tcl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/search.tcl b/lib/search.tcl
index 32c8656fc..b371e9a30 100644
--- a/lib/search.tcl
+++ b/lib/search.tcl
@@ -35,7 +35,7 @@ constructor new {i_w i_text args} {
trace add variable searchstring write [cb _incrsearch_cb]
- bind $w <Destroy> [cb delete_this]
+ bind $w <Destroy> [list delete_this $this]
return $this
}