Skip to content

Commit 01955ab

Browse files
Merge pull request livecode#6523 from livecodepanos/bugfix-21271
[21271] Fix crash when setting markerpoints of a grc in repeat loop
2 parents fc0fb0a + 81fc506 commit 01955ab

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

docs/notes/bugfix-21271.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Fix crash when setting the markerpoints of a graphic in a repeat loop

engine/src/exec-interface-graphic.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -781,6 +781,7 @@ void MCGraphic::SetMarkerPoints(MCExecContext& ctxt, uindex_t p_count, MCPoint*
781781
{
782782
flags &= ~F_MARKER_DRAWN;
783783
delete[] markerpoints;
784+
markerpoints = NULL;
784785
nmarkerpoints = 0;
785786
}
786787
else

0 commit comments

Comments
 (0)