diff --git a/src/add-ons/media/plugins/ffmpeg/AVFormatReader.cpp b/src/add-ons/media/plugins/ffmpeg/AVFormatReader.cpp index b10b62bab5..7669a9aef7 100644 --- a/src/add-ons/media/plugins/ffmpeg/AVFormatReader.cpp +++ b/src/add-ons/media/plugins/ffmpeg/AVFormatReader.cpp @@ -242,7 +242,7 @@ StreamBase::~StreamBase() avformat_close_input(&fContext); av_free_packet(&fPacket); av_free(fContext); - if(fIOContext) + if (fIOContext != NULL) av_free(fIOContext->buffer); av_free(fIOContext); }