]> granicus.if.org Git - handbrake/commitdiff
libhb: do not free hb_work_private_t in reader_init() if the reader open fail, it...
authorDamiano Galassi <damiog@gmail.com>
Sat, 12 Nov 2016 12:22:09 +0000 (13:22 +0100)
committerDamiano Galassi <damiog@gmail.com>
Sat, 12 Nov 2016 12:22:09 +0000 (13:22 +0100)
libhb/reader.c

index a0e9e9f5fbff350e15e0dea59c5e9995fa6f44ca..9b8b6084ee381c46eac0ad37208d7b0b73b850ad 100644 (file)
@@ -299,7 +299,6 @@ static int reader_init( hb_work_object_t * w, hb_job_t * job )
     // with the reader. Specifically avcodec needs this.
     if ( hb_reader_open( r ) )
     {
-        free( r );
         return 1;
     }
     return 0;