Index: xpra/codecs/dec_avcodec/decoder.pyx =================================================================== --- a/xpra/codecs/dec_avcodec/decoder.pyx (revision 4854) +++ b/xpra/codecs/dec_avcodec/decoder.pyx (working copy) @@ -92,7 +92,7 @@ AVCodecContext *avcodec_alloc_context3(const AVCodec *codec) int avcodec_open2(AVCodecContext *avctx, const AVCodec *codec, AVDictionary **options) AVFrame *avcodec_alloc_frame() - void avcodec_free_frame(AVFrame **frame) + #void avcodec_free_frame(AVFrame **frame) int avcodec_close(AVCodecContext *avctx) #actual decoding: @@ -433,8 +433,8 @@ debug("clean_decoder() freeing AVFrame: %s", hex( self.frame)) if self.frame!=NULL: - avcodec_free_frame(&self.frame) - #redundant: self.frame = NULL + #free(&self.frame) #freeing here causes a double free on Ubuntu, avcodec_close probably does it too + self.frame = NULL cdef unsigned long ctx_key #@DuplicatedSignature debug("clean_decoder() freeing AVCodecContext: %s", hex( self.codec_ctx))