]> source.dussan.org Git - jgit.git/commit
Fix DeltaWindow.clear() to release loaded buffer bytes. 10/9010/2
authorColby Ranger <cranger@google.com>
Mon, 3 Dec 2012 20:23:14 +0000 (12:23 -0800)
committerColby Ranger <cranger@google.com>
Mon, 3 Dec 2012 20:46:53 +0000 (12:46 -0800)
commitb9e485661dd0ecad67585ed0e24cb0ab025085a7
tree6b15d2da013383971863f07e5386871803f5636e
parent4213a91c97c68d7a4ee1450210f55ebeab401654
Fix DeltaWindow.clear() to release loaded buffer bytes.

It is possible for the buffer to be set but not the index. It
ocurrs when an exception occurs during creating an index, but
after the buffer is loaded. Furthermore, the cleared DeltaWindowEntry
should have been ent and not res.

Change-Id: I2e0d79540316635bf7aa43efd225e4eb38230844
org.eclipse.jgit/src/org/eclipse/jgit/storage/pack/DeltaWindow.java