summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libhb/encx265.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libhb/encx265.c b/libhb/encx265.c
index 4ce890f99..a3af25c19 100644
--- a/libhb/encx265.c
+++ b/libhb/encx265.c
@@ -347,6 +347,7 @@ void encx265Close(hb_work_object_t *w)
{
hb_work_private_t *pv = w->private_data;
+ if (pv == NULL) return;
if (pv->delayed_chapters != NULL)
{
struct chapter_s *item;