summaryrefslogtreecommitdiffstats
path: root/libhb/common.c
diff options
context:
space:
mode:
Diffstat (limited to 'libhb/common.c')
-rw-r--r--libhb/common.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libhb/common.c b/libhb/common.c
index 9f7a917de..1b8c0f4b7 100644
--- a/libhb/common.c
+++ b/libhb/common.c
@@ -3826,7 +3826,10 @@ void hb_filter_info_close( hb_filter_info_t ** _fi )
{
hb_filter_info_t * fi = *_fi;
- free(fi->human_readable_desc);
+ if (fi != NULL)
+ {
+ free(fi->human_readable_desc);
+ }
free( fi );
*_fi = NULL;