gitk: Clear array 'commitinfo' on reload
commit18ae912082736b4c2c596b2c5bdcf2e032a03467
authorMarkus Hitter <mah@jump-ing.de>
Mon, 7 Nov 2016 18:02:51 +0000 (7 19:02 +0100)
committerPaul Mackerras <paulus@ozlabs.org>
Mon, 12 Dec 2016 09:39:37 +0000 (12 20:39 +1100)
treeb2b1023768339d6b7dcb03645f0e16d160bf3c76
parent0748f41eb83194dbc310fe47b4948f611ac5b3a2
gitk: Clear array 'commitinfo' on reload

After a reload we might have an entirely different set of commits,
so keeping all of them leaks memory. Remove them all because
re-creating them is not more expensive than testing wether they're
still valid. Lazy (re-)creation is already well established, so
a missing entry can't cause harm.

Signed-off-by: Markus Hitter <mah@jump-ing.de>
Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
gitk