Git commit b376ae4748b4b79fb252a99bf1295d4356d07d26 by Dr. Robert Marmorstein. Committed on 01/08/2011 at 17:19. Pushed by robertm into branch 'master'. Fix mismatched new[]/delete cppcheck caught this one . . . could cause a memory leak or corruption. M +1 -1 filters/karbon/pdf/SvgOutputDev.cpp http://commits.kde.org/koffice/b376ae4748b4b79fb252a99bf1295d4356d07d26 diff --git a/filters/karbon/pdf/SvgOutputDev.cpp b/filters/karbon/pdf/SvgOutputDev.cpp index ffb32ac..efd9501 100644 --- a/filters/karbon/pdf/SvgOutputDev.cpp +++ b/filters/karbon/pdf/SvgOutputDev.cpp @@ -536,7 +536,7 @@ void SvgOutputDev::drawImage(GfxState *state, Object */*ref*/, Stream *str, } delete image; - delete buffer; + delete[] buffer; delete imgStr; }