summaryrefslogtreecommitdiffstats
path: root/libhb
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2009-12-13 19:01:12 +0000
committerjstebbins <[email protected]>2009-12-13 19:01:12 +0000
commitffb46ad854c4f5a09597ff56a981841cfef6291a (patch)
treef42c2af2888d6a7d7a00cbd45e22409ef479a5c3 /libhb
parente38eb6fbb48f99364b1da9873f6f7f5ed8cd8122 (diff)
fix crash with vobsub passthru
the last subtitle buffer was getting added to the buffer pool twice and ultimately freed twice. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3027 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb')
-rw-r--r--libhb/decvobsub.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libhb/decvobsub.c b/libhb/decvobsub.c
index 1fd9d5be3..e180b232f 100644
--- a/libhb/decvobsub.c
+++ b/libhb/decvobsub.c
@@ -513,7 +513,9 @@ static hb_buffer_t * Decode( hb_work_object_t * w )
{
pv->buf->start = pv->pts_start;
pv->buf->stop = pv->pts_stop;
- return pv->buf;
+ buf = pv->buf;
+ pv->buf = NULL;
+ return buf;
}
/* Do the actual decoding now */