OSDN Git Service
(root)
/
handbrake-jp
/
handbrake-jp-git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fix buffer leak during indepth scan
[handbrake-jp/handbrake-jp-git.git]
/
libhb
/
muxcommon.c
diff --git
a/libhb/muxcommon.c
b/libhb/muxcommon.c
index
dbaa9c4
..
7ea3c79
100644
(file)
--- a/
libhb/muxcommon.c
+++ b/
libhb/muxcommon.c
@@
-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 );
}