Code

gitk: Avoid crash if closed while reading references
authorPat Thoyts <patthoyts@users.sourceforge.net>
Wed, 15 Apr 2009 16:14:03 +0000 (17:14 +0100)
committerPaul Mackerras <paulus@samba.org>
Fri, 17 Apr 2009 12:52:15 +0000 (22:52 +1000)
commit478afad697e58433f34d69b5fe08511405f23506
treee9e9b3880383fe0118dcce1de464932d5711b23f
parentb575b2f1f420bf82557beab0f4ec12e5aa832bea
gitk: Avoid crash if closed while reading references

As recorded in msysGit issue 125, if the user closes gitk while it
reports itself as still reading references then Tk will crash in the
geometry management code.  This has been fixed for Tk 8.5.7 and above.
This patch avoids the problem by flushing outstanding geometry events
before calling the readrefs procedure.

See also http://code.google.com/p/msysgit/issues/detail?id=125

Signed-off-by: Pat Thoyts <patthoyts@users.sourceforge.net>
Signed-off-by: Paul Mackerras <paulus@samba.org>
gitk