shithub: openh264

Download patch

ref: 01322d11ff20106fde5786c33586ecb4bb5697ba
parent: cc66c999b0459851c76d9a894ff237131f9e5685
author: huili2 <[email protected]>
date: Mon Jun 9 14:12:03 EDT 2014

fix memory leak in EncUT_GetIntraPredictor

--- a/test/encoder/EncUT_GetIntraPredictor.cpp
+++ b/test/encoder/EncUT_GetIntraPredictor.cpp
@@ -509,7 +509,9 @@
   }
 
   pRef -= kiStride + 1;
+  pPred -= (iPredStride * 16);
   delete []pRef;
+  delete []pPred;
 }
 
 TEST(GetIntraPredictorTest, TestGetI16x16LumaPredDc) {