From: Damiano Galassi Date: Sat, 16 Dec 2017 08:49:38 +0000 (+0100) Subject: theora: fix a crash when enctheoraClose is called and pv is NULL. X-Git-Tag: 1.1.0~187 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=60826581e324cb8fa7ea9d99b1f3327bdd4b1df9;p=handbrake theora: fix a crash when enctheoraClose is called and pv is NULL. --- diff --git a/libhb/enctheora.c b/libhb/enctheora.c index 390b52177..00b4d18eb 100644 --- a/libhb/enctheora.c +++ b/libhb/enctheora.c @@ -190,6 +190,11 @@ void enctheoraClose( hb_work_object_t * w ) { hb_work_private_t * pv = w->private_data; + if (pv == NULL) + { + return; + } + th_encode_free( pv->ctx ); if( pv->file )