]> granicus.if.org Git - handbrake/commitdiff
libhb: check if decvobsub.c private_data is not null before accessing one of its...
authorDamiano Galassi <damiog@gmail.com>
Mon, 9 Jan 2017 08:18:03 +0000 (09:18 +0100)
committerDamiano Galassi <damiog@gmail.com>
Tue, 10 Jan 2017 18:08:07 +0000 (19:08 +0100)
(cherry picked from commit 008b1f47941e6479e5db106653232fb886196238)

libhb/decvobsub.c

index 73401b9f392e448b3aeef45ae9b0c89bfc116c4a..009c12e9643d591932f4fdb3e6c7c5361e16b91a 100644 (file)
@@ -196,7 +196,7 @@ void decsubClose( hb_work_object_t * w )
 {
     hb_work_private_t * pv = w->private_data;
 
-    if ( pv->buf )
+    if ( pv && pv->buf )
         hb_buffer_close( &pv->buf );
     free( w->private_data );
 }