aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2010-11-25 23:51:37 +0000
committerStefano Sabatini <stefano.sabatini-lala@poste.it>2010-11-25 23:51:37 +0000
commit2467997c8c540a50950d7d2078d8bb9d7cb56d24 (patch)
tree4e633772b7ce4a7ebdba9194e10521ee4a312ade
parent9b195435b3f98480e300f7c00a20e52c9bbce65f (diff)
downloadffmpeg-2467997c8c540a50950d7d2078d8bb9d7cb56d24.tar.gz
Fix crash in uninit.
Originally committed as revision 25829 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavfilter/vf_frei0r.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/vf_frei0r.c b/libavfilter/vf_frei0r.c
index 49fe172be0..48f5b49841 100644
--- a/libavfilter/vf_frei0r.c
+++ b/libavfilter/vf_frei0r.c
@@ -275,7 +275,7 @@ static av_cold void uninit(AVFilterContext *ctx)
{
Frei0rContext *frei0r = ctx->priv;
- if (frei0r->destruct)
+ if (frei0r->destruct && frei0r->instance)
frei0r->destruct(frei0r->instance);
if (frei0r->deinit)
frei0r->deinit();