changeset 29585:a17d4f8040f1

free(), delete and delete[] are all different and can't just be used at random, so change code to use the one appropriate for the allocation used.
author reimar
date Wed, 02 Sep 2009 11:07:02 +0000
parents dc57d7bd98e1
children 2eff450157cd
files libmpdemux/demux_rtp.cpp
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demux_rtp.cpp	Wed Sep 02 10:55:36 2009 +0000
+++ b/libmpdemux/demux_rtp.cpp	Wed Sep 02 11:07:02 2009 +0000
@@ -389,7 +389,7 @@
   Medium::close(rtpState->sipClient);
   delete rtpState->audioBufferQueue;
   delete rtpState->videoBufferQueue;
-  delete rtpState->sdpDescription;
+  delete[] rtpState->sdpDescription;
   delete rtpState;
 #ifdef CONFIG_LIBAVCODEC
   av_freep(&avcctx);
@@ -631,7 +631,7 @@
 }
 
 ReadBufferQueue::~ReadBufferQueue() {
-  delete fTag;
+  free((void *)fTag);
 
   // Free any pending buffers (that never got delivered):
   demux_packet_t* dp = pendingDPHead;