diff --git a/content/media/ogg/nsOggCodecState.cpp b/content/media/ogg/nsOggCodecState.cpp index 4a374f897920..88acbe1c28fd 100644 --- a/content/media/ogg/nsOggCodecState.cpp +++ b/content/media/ogg/nsOggCodecState.cpp @@ -114,7 +114,7 @@ PRBool nsOggCodecState::PageInFromBuffer() { int ret = ogg_stream_pagein(&mState, p); NS_ENSURE_TRUE(ret == 0, PR_FALSE); mBuffer.PopFront(); - delete p->header; + delete [] p->header; delete p; return PR_TRUE; } diff --git a/content/media/ogg/nsOggCodecState.h b/content/media/ogg/nsOggCodecState.h index fefe528c57de..e45ff33eb559 100644 --- a/content/media/ogg/nsOggCodecState.h +++ b/content/media/ogg/nsOggCodecState.h @@ -54,7 +54,7 @@ class OggPageDeallocator : public nsDequeFunctor { virtual void* operator() (void* aPage) { ogg_page* p = static_cast(aPage); - delete p->header; + delete [] p->header; delete p; return nsnull; }