OSDN Git Service

plug some memory leaks.
[handbrake-jp/handbrake-jp-git.git] / libhb / decmpeg2.c
index 1d2d059..6604ac1 100644 (file)
@@ -834,7 +834,7 @@ static void decmpeg2Close( hb_work_object_t * w )
     {
         hb_log( "mpeg2 done: %d frames", pv->libmpeg2->nframes );
     }
-    hb_list_close( &pv->list );
+    hb_list_empty( &pv->list );
     if ( pv->libmpeg2->list_subtitle )
     {
         hb_list_close( &pv->libmpeg2->list_subtitle );