Bug 798061 - Fix mismatched malloc vs delete[] in mozilla::gfx::AlphaBoxBlur::~AlphaBoxBlur(). r=jmuizelaar
authorJoe Drew <joe@drew.ca>
Sat, 06 Oct 2012 21:53:23 -0400
changeset 109543 9c483486bf39341a159698a54a5a0081020fdc8d
parent 109542 33da5c33a23ef1cc6cd28b748b9e9cb823567872
child 109544 8c53914f34b03f0ebaf985e7578b14b25c752532
push id23632
push userphilringnalda@gmail.com
push dateSun, 07 Oct 2012 19:14:37 +0000
treeherdermozilla-central@83d38854c21e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjmuizelaar
bugs798061
milestone18.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 798061 - Fix mismatched malloc vs delete[] in mozilla::gfx::AlphaBoxBlur::~AlphaBoxBlur(). r=jmuizelaar
gfx/2d/Blur.cpp
--- a/gfx/2d/Blur.cpp
+++ b/gfx/2d/Blur.cpp
@@ -400,17 +400,17 @@ AlphaBoxBlur::AlphaBoxBlur(uint8_t* aDat
     mStride(aStride)
 {
 }
 
 
 AlphaBoxBlur::~AlphaBoxBlur()
 {
   if (mFreeData) {
-    delete mData;
+    free(mData);
   }
 }
 
 unsigned char*
 AlphaBoxBlur::GetData()
 {
   return mData;
 }