summaryrefslogtreecommitdiffstats
path: root/libhb/reader.c
diff options
context:
space:
mode:
Diffstat (limited to 'libhb/reader.c')
-rw-r--r--libhb/reader.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libhb/reader.c b/libhb/reader.c
index 47ec9d546..35939f96b 100644
--- a/libhb/reader.c
+++ b/libhb/reader.c
@@ -115,6 +115,8 @@ static void ReaderFunc( void * _r )
hb_buffer_close( &r->ps );
hb_dvd_stop( r->dvd );
hb_dvd_close( &r->dvd );
+ free( r );
+ _r = NULL;
hb_log( "reader: done" );
}