You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Code Editor (Visual): If Object At Place, If Collision Shape, and If Collision Point all cause in-game memory leaks if their "Free Target" option is checked
#6069
If you use a collision block in visual and check both "return list" and "free target", the generated GML code will have a memory leak. This is because it still runs is_real(list) before destroying the list, which will never be true due to the recent ref changes.
Steps To Reproduce
Add the "If object at place" block. Check "return list", set "free target" to true, and set "target" to a variable set in the create event.
Which version of GameMaker are you reporting this issue for?
IDE v2024.4.1.152 Runtime v2024.4.1.201
Which operating system(s) are you seeing the problem on?
For anyone who has this issue - you do actually need to delete your existing copies of these Visual nodes and re-add them in order to pick up this fix!
YYDan
changed the title
GML Visual: Using a collision list block with "Free Target" checked causes a memory leak
Code Editor (Visual): If Object At Place, If Collision Shape, and If Collision Point all cause in-game memory leaks if their "Free Target" option is checked
Jun 26, 2024
Description
If you use a collision block in visual and check both "return list" and "free target", the generated GML code will have a memory leak. This is because it still runs
is_real(list)
before destroying the list, which will never be true due to the recent ref changes.Steps To Reproduce
Add the "If object at place" block. Check "return list", set "free target" to true, and set "target" to a variable set in the create event.
Which version of GameMaker are you reporting this issue for?
IDE v2024.4.1.152 Runtime v2024.4.1.201
Which operating system(s) are you seeing the problem on?
Windows 10.0.22631.0
ac8b2660-9c6b-4150-87a1-dd721645fb4a
The text was updated successfully, but these errors were encountered: