From: Loren Merritt Date: Sun, 27 Jan 2008 11:50:50 +0000 (+0000) Subject: fix a memleak in cqm X-Git-Url: http://www.zmx.ovh/git.videolan.org/?a=commitdiff_plain;h=a93d7bf14049affb0ef925ba8e0f7f919693bca9;p=x264.git fix a memleak in cqm git-svn-id: svn://svn.videolan.org/x264/trunk@730 df754926-b1dd-0310-bc7b-ec298dee348c --- diff --git a/common/set.c b/common/set.c index e49de9b0..c08bceee 100644 --- a/common/set.c +++ b/common/set.c @@ -189,6 +189,11 @@ void x264_cqm_delete( x264_t *h ) x264_free( h->dequant4_mf[i] ); x264_free( h->unquant4_mf[i] ); } + for( j = 0; j < i; j++ ) + if( h->quant4_bias[i] == h->quant4_bias[j] ) + break; + if( j == i ) + x264_free( h->quant4_bias[i] ); } }