From 60826581e324cb8fa7ea9d99b1f3327bdd4b1df9 Mon Sep 17 00:00:00 2001 From: Damiano Galassi Date: Sat, 16 Dec 2017 09:49:38 +0100 Subject: [PATCH] theora: fix a crash when enctheoraClose is called and pv is NULL. --- libhb/enctheora.c | 5 +++++ 1 file changed, 5 insertions(+) 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 ) -- 2.40.0