[vlc-commits] smooth: mismatched delete/free

Rémi Denis-Courmont git at videolan.org
Sat Jan 2 22:23:24 CET 2016


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Jan  2 23:23:03 2016 +0200| [a0d04a2f2cd650f464bdd4e9e3a4d753373c4ef8] | committer: Rémi Denis-Courmont

smooth: mismatched delete/free

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a0d04a2f2cd650f464bdd4e9e3a4d753373c4ef8
---

 modules/demux/smooth/playlist/ForgedInitSegment.cpp |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/demux/smooth/playlist/ForgedInitSegment.cpp b/modules/demux/smooth/playlist/ForgedInitSegment.cpp
index 3f8f9e9..c7de0a4 100644
--- a/modules/demux/smooth/playlist/ForgedInitSegment.cpp
+++ b/modules/demux/smooth/playlist/ForgedInitSegment.cpp
@@ -123,7 +123,7 @@ void ForgedInitSegment::setWaveFormatEx(const std::string &waveformat)
     size_t i_data;
     uint8_t *p_data = HexDecode(waveformat, &i_data);
     fromWaveFormatEx(p_data, i_data);
-    delete p_data;
+    free(p_data);
 }
 
 void ForgedInitSegment::setCodecPrivateData(const std::string &extra)



More information about the vlc-commits mailing list