Bug 1055060 - Non-array delete for scalars - CID 1122166 & 1122167 r=jesup
authorSylvestre Ledru <sylvestre@mozilla.com>
Tue, 19 Aug 2014 08:19:28 +0200
changeset 200244 a38daccaa557e0d4ceadc5b65e8f14218ca788d8
parent 200243 1db9d4b9d7407a5f5f4a7a75c39732be6470e4ce
child 200245 f636d9bdb619130a7d41586874cbc3e2ac43f475
child 200295 cd2d406df6559f0ae827e163886149de6eb526df
push id47850
push usersledru@mozilla.com
push dateTue, 19 Aug 2014 07:01:52 +0000
treeherdermozilla-inbound@a38daccaa557 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjesup
bugs1055060, 1122166, 1122167
milestone34.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1055060 - Non-array delete for scalars - CID 1122166 & 1122167 r=jesup
media/webrtc/signaling/src/peerconnection/PeerConnectionImpl.h
--- a/media/webrtc/signaling/src/peerconnection/PeerConnectionImpl.h
+++ b/media/webrtc/signaling/src/peerconnection/PeerConnectionImpl.h
@@ -427,27 +427,27 @@ public:
 
   NS_IMETHODIMP GetLocalDescription(char** aSDP);
 
   void GetLocalDescription(nsAString& aSDP)
   {
     char *tmp;
     GetLocalDescription(&tmp);
     aSDP.AssignASCII(tmp);
-    delete tmp;
+    delete[] tmp;
   }
 
   NS_IMETHODIMP GetRemoteDescription(char** aSDP);
 
   void GetRemoteDescription(nsAString& aSDP)
   {
     char *tmp;
     GetRemoteDescription(&tmp);
     aSDP.AssignASCII(tmp);
-    delete tmp;
+    delete[] tmp;
   }
 
   NS_IMETHODIMP SignalingState(mozilla::dom::PCImplSignalingState* aState);
 
   mozilla::dom::PCImplSignalingState SignalingState()
   {
     mozilla::dom::PCImplSignalingState state;
     SignalingState(&state);