OSDN Git Service

fix buffer leak during indepth scan
[handbrake-jp/handbrake-jp-git.git] / libhb / muxcommon.c
index dbaa9c4..7ea3c79 100644 (file)
@@ -369,7 +369,13 @@ static void mux_loop( void * _w )
         if ( buf_in == NULL )
             continue;
         if ( *job->die )
+        {
+            if( buf_in )
+            {
+                hb_buffer_close( &buf_in );
+            }
             break;
+        }
 
         w->status = w->work( w, &buf_in, NULL );
     }