From ffb46ad854c4f5a09597ff56a981841cfef6291a Mon Sep 17 00:00:00 2001 From: jstebbins Date: Sun, 13 Dec 2009 19:01:12 +0000 Subject: 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 --- libhb/decvobsub.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 */ -- cgit v1.2.3