View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0009021||Multi Theft Auto : San Andreas||Scripting||public||2015-08-30 15:44||2018-09-05 22:31|
|Target Version||Fixed in Version|
|Summary||0009021: Bad resource userdata for onResourceStop on "removed while running"|
If you remove/move a resource while running and refresh your resources, the handler for onResourceStop will receive a "dead" resource userdata.
|Steps To Reproduce|
Resources, which clean up special data after resources will have memory leaks, because the stopped resource's data won't be deleted due to the error.
|Tags||No tags attached.|
It's probably a good idea not to move resources without stopping them.
Of course, but the resource userdata remains invalid in that event and you can't validate it.