On error DGifOpenFileHandle sometimes closes the file
descriptor and sometimes doesn't. It relies on
DGifOpenFileName() to always close it if
DGifOpenFileHandle fails. This causes problem when
building on Visual Studio 2005 because attempts to
close a closed file generate a run time error.
Attached is a patch that changes DGifOpenFileHandle()
to always close the file descriptor on error.
Log in to post a comment.