From 7471229840198ffb240cbf1868d69c060017d4ee Mon Sep 17 00:00:00 2001 From: David Capello Date: Sat, 25 Jun 2011 17:29:58 -0300 Subject: [PATCH] Fix a bug using fop->format when it's NULL in fop_free() (introduced in previous commit). --- src/file/file.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/file/file.cpp b/src/file/file.cpp index 4584aabdf..05e359a04 100644 --- a/src/file/file.cpp +++ b/src/file/file.cpp @@ -616,7 +616,8 @@ void fop_stop(FileOp *fop) void fop_free(FileOp *fop) { - fop->format->destroyData(fop); + if (fop->format) + fop->format->destroyData(fop); if (fop->seq.palette != NULL) delete fop->seq.palette;