diff --git a/jni/GifTranscoder.cpp b/jni/GifTranscoder.cpp index 44fa30c..1f329f7 100644 --- a/jni/GifTranscoder.cpp +++ b/jni/GifTranscoder.cpp @@ -498,11 +498,11 @@ ColorARGB GifTranscoder::gifColorToColorARGB(const GifColorType& color) { GifFilesCloser::~GifFilesCloser() { if (mGifIn) { - DGifCloseFile(mGifIn); + DGifCloseFile(mGifIn, NULL); mGifIn = NULL; } if (mGifOut) { - EGifCloseFile(mGifOut); + EGifCloseFile(mGifOut, NULL); mGifOut = NULL; } }