]> git.sesse.net Git - x264/commitdiff
Really fix encoder_close crash this time
authorSteven Walters <kemuri9@gmail.com>
Tue, 22 Sep 2009 19:14:23 +0000 (12:14 -0700)
committerFiona Glaser <fiona@x264.com>
Tue, 22 Sep 2009 19:14:23 +0000 (12:14 -0700)
Not-entirely-fixed in r1253.

encoder/lookahead.c

index 0f6474108693b6ab137817a19e3f69a18108d271..9c8dd17e1873cc24177ae46fbe767d32bafde501 100644 (file)
@@ -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 );
 }