From 0d49820cad9d2edb12e427f0f6212be0d56d97ef Mon Sep 17 00:00:00 2001 From: Uwe Rathmann Date: Tue, 18 Oct 2022 17:36:55 +0200 Subject: [PATCH] bad memory allocation size fixed --- src/nodes/QskStrokeNode.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/nodes/QskStrokeNode.cpp b/src/nodes/QskStrokeNode.cpp index e4120b75..22dead29 100644 --- a/src/nodes/QskStrokeNode.cpp +++ b/src/nodes/QskStrokeNode.cpp @@ -90,7 +90,8 @@ void QskStrokeNode::updateNode( stroker.process( dashedVectorPath, effectivePen, {}, {} ); } - d->geometry.allocate( stroker.vertexCount() ); + // 2 vertices for each point + d->geometry.allocate( stroker.vertexCount() / 2 ); memcpy( d->geometry.vertexData(), stroker.vertices(), stroker.vertexCount() * sizeof( float ) );