Bug 1053426 - Fennec crashes when tab sharing is active. r=jesup, a=lmandel
authorRandall Barker <rbarker@mozilla.com>
Wed, 17 Sep 2014 19:21:20 -0400
changeset 225766 4ff961ace0d0
parent 225765 8c9d5c14b866
child 225767 9d9abce3b2f2
push id4011
push userryanvm@gmail.com
push date2014-10-22 22:03 +0000
treeherdermozilla-beta@65f5bf99d815 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjesup, lmandel
bugs1053426
milestone34.0
Bug 1053426 - Fennec crashes when tab sharing is active. r=jesup, a=lmandel
media/webrtc/signaling/src/mediapipeline/MediaPipeline.cpp
--- a/media/webrtc/signaling/src/mediapipeline/MediaPipeline.cpp
+++ b/media/webrtc/signaling/src/mediapipeline/MediaPipeline.cpp
@@ -1254,16 +1254,17 @@ void MediaPipelineTransmit::PipelineList
                              yuv + cr_offset, half_width,
                              size.width, size.height);
         break;
       default:
         MOZ_MTLOG(ML_ERROR, "Unsupported RGB video format");
         MOZ_ASSERT(PR_FALSE);
     }
     conduit->SendVideoFrame(yuv, buffer_size, size.width, size.height, mozilla::kVideoI420, 0);
+    free(yuv);
   } else {
     MOZ_MTLOG(ML_ERROR, "Unsupported video format");
     MOZ_ASSERT(PR_FALSE);
     return;
   }
 }
 #endif