comparison libmpdemux/demux_rtp.cpp @ 29460:d9be78936c0c

Fix possible double-free.
author cehoyos
date Wed, 12 Aug 2009 15:20:14 +0000
parents 3a154fb8f85c
children a17d4f8040f1
comparison
equal deleted inserted replaced
29459:c1bf06060606 29460:d9be78936c0c
390 delete rtpState->audioBufferQueue; 390 delete rtpState->audioBufferQueue;
391 delete rtpState->videoBufferQueue; 391 delete rtpState->videoBufferQueue;
392 delete rtpState->sdpDescription; 392 delete rtpState->sdpDescription;
393 delete rtpState; 393 delete rtpState;
394 #ifdef CONFIG_LIBAVCODEC 394 #ifdef CONFIG_LIBAVCODEC
395 av_free(avcctx); 395 av_freep(&avcctx);
396 #endif 396 #endif
397 397
398 env->reclaim(); delete scheduler; 398 env->reclaim(); delete scheduler;
399 } 399 }
400 400