#4 always close fd in DGifOpenFileHandle()

closed
nobody
None
5
2012-10-16
2006-05-11
No

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.

Discussion

  • Mikhail Kruk

    Mikhail Kruk - 2006-05-11
     
  • Toshio Kuratomi

    Toshio Kuratomi - 2007-11-09

    Logged In: YES
    user_id=944205
    Originator: NO

    Going through old tickets. Committed.

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks