changeset 29460:d9be78936c0c

Fix possible double-free.
author cehoyos
date Wed, 12 Aug 2009 15:20:14 +0000
parents c1bf06060606
children 1429547613d0
files libmpdemux/demux_rtp.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demux_rtp.cpp	Wed Aug 12 01:04:37 2009 +0000
+++ b/libmpdemux/demux_rtp.cpp	Wed Aug 12 15:20:14 2009 +0000
@@ -392,7 +392,7 @@
   delete rtpState->sdpDescription;
   delete rtpState;
 #ifdef CONFIG_LIBAVCODEC
-  av_free(avcctx);
+  av_freep(&avcctx);
 #endif
 
   env->reclaim(); delete scheduler;