]> Cypherpunks repositories - gostls13.git/commit
image/gif: close the lzw.Reader we create.
authorNigel Tao <nigeltao@golang.org>
Fri, 5 Jul 2013 00:12:13 +0000 (10:12 +1000)
committerNigel Tao <nigeltao@golang.org>
Fri, 5 Jul 2013 00:12:13 +0000 (10:12 +1000)
commit48936e46a1d2d92858c5ae044a6247bdccf067c9
tree2b523a2447ab773038f795f827cd75b7db4d1d32
parent1856286fc23ec4332b7ccc46d9838fbb96fd4ce0
image/gif: close the lzw.Reader we create.

The lzw.NewReader doc comment says, "It is the caller's responsibility
to call Close on the ReadCloser when finished reading."

Thanks to Andrew Bonventre for noticing this.

R=r, dsymonds, adg
CC=andybons, golang-dev
https://golang.org/cl/10821043
src/pkg/image/gif/reader.go