Skip to content

Commit 1132c87

Browse files
authored
[Bug 19349] Fix relayer object to numbered layer
In livecode#5026, the relayering logic was modified to fix a possible memory leak. Unfortunately the list iteration was implemented incorrectly, so relayering didn't work if the target object for relayering wasn't the top object in the card. Coverity-ID: 16369
1 parent 5ad78ab commit 1132c87

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

engine/src/card.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1778,6 +1778,7 @@ Exec_stat MCCard::relayer(MCControl *optr, uint2 newlayer)
17781778
}
17791779
break;
17801780
}
1781+
t_insert_iter = t_insert_iter->next();
17811782
}
17821783
while (t_insert_iter != objptrs);
17831784
}

0 commit comments

Comments
 (0)