From: Steven Walters Date: Tue, 22 Sep 2009 19:14:23 +0000 (-0700) Subject: Really fix encoder_close crash this time X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b454edb2c32910ec021ac46405c87b0ad0b1ee3b;p=libx264 Really fix encoder_close crash this time Not-entirely-fixed in r1253. --- diff --git a/encoder/lookahead.c b/encoder/lookahead.c index 0f647410..9c8dd17e 100644 --- a/encoder/lookahead.c +++ b/encoder/lookahead.c @@ -174,9 +174,9 @@ void x264_lookahead_delete( x264_t *h ) } x264_synch_frame_list_delete( &h->lookahead->ifbuf ); x264_synch_frame_list_delete( &h->lookahead->next ); - x264_synch_frame_list_delete( &h->lookahead->ofbuf ); if( h->lookahead->last_nonb ) x264_frame_push_unused( h, h->lookahead->last_nonb ); + x264_synch_frame_list_delete( &h->lookahead->ofbuf ); x264_free( h->lookahead ); }