author | Kartikaya Gupta <kgupta@mozilla.com> |
Tue, 06 Jun 2017 09:43:43 -0400 | |
changeset 589603 | 6c26e1040e2ee0d615542e4cf70bd2f3b9e071f2 |
parent 589544 | 4dd1d17ba22660b8f5869a707f2e4e9f9dd5be5b |
child 631950 | 0ed169d5b45096cd7585e849e9b434a8a393283b |
push id | 62446 |
push user | kgupta@mozilla.com |
push date | Tue, 06 Jun 2017 13:44:02 +0000 |
reviewers | jrmuizel |
bugs | 1370526 |
milestone | 55.0a1 |
--- a/gfx/2d/ScaledFontMac.cpp +++ b/gfx/2d/ScaledFontMac.cpp @@ -202,17 +202,17 @@ int maxPow2LessThan(int a) struct writeBuf { explicit writeBuf(int size) { this->data = new unsigned char [size]; this->offset = 0; } ~writeBuf() { - delete this->data; + delete[] this->data; } template <class T> void writeElement(T a) { *reinterpret_cast<T*>(&this->data[this->offset]) = a; this->offset += sizeof(T); }