dloebl / cgif

GIF encoder written in C
MIT License
113 stars 15 forks source link

Fix potential memory leak when closing a GIF stream without frames #41

Closed dloebl closed 2 years ago

dloebl commented 2 years ago

Fix a memory leak when closing the GIF stream with cgif_close() before any frame has been added. It is necessary to call cgif_raw_close() in any case. Closes #40