# HG changeset patch # User Chris Cannam # Date 1476968765 -3600 # Node ID c5a82068bd6083596328bf0694928247ec6ec258 # Parent fc00a06feecd038ab4de63853621a82589b6243f Fix completely bogus allocation that was only shown up because of a compiler warning for int->float conversion possibly restricting value range! diff -r fc00a06feecd -r c5a82068bd60 widgets/WindowShapePreview.cpp --- a/widgets/WindowShapePreview.cpp Thu Oct 20 11:20:27 2016 +0100 +++ b/widgets/WindowShapePreview.cpp Thu Oct 20 14:06:05 2016 +0100 @@ -68,7 +68,7 @@ path = QPainterPath(); - float *acc = new float(w); + float *acc = new float[w]; for (int i = 0; i < w; ++i) acc[i] = 0.f; for (int j = 0; j < 3; ++j) { for (int i = 0; i < step * 2; ++i) {