mirror of
				https://github.com/nyanmisaka/ffmpeg-rockchip.git
				synced 2025-10-31 20:42:49 +08:00 
			
		
		
		
	avcodec/nellymoserenc: use av_freep(), do not leave stale pointers in memory
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
		| @@ -138,8 +138,8 @@ static av_cold int encode_end(AVCodecContext *avctx) | |||||||
|     ff_mdct_end(&s->mdct_ctx); |     ff_mdct_end(&s->mdct_ctx); | ||||||
|  |  | ||||||
|     if (s->avctx->trellis) { |     if (s->avctx->trellis) { | ||||||
|         av_free(s->opt); |         av_freep(&s->opt); | ||||||
|         av_free(s->path); |         av_freep(&s->path); | ||||||
|     } |     } | ||||||
|     ff_af_queue_close(&s->afq); |     ff_af_queue_close(&s->afq); | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Michael Niedermayer
					Michael Niedermayer