David Snopek
David Snopek
Thanks! Is there a reason this is still a draft? Since the Godot PR is merged, it'd be great to get this one merged as well
Cherry-picked for 4.2 in PR https://github.com/godotengine/godot-cpp/pull/1410
Cherry-picked for 4.1 in PR https://github.com/godotengine/godot-cpp/pull/1411
Ack, I made a really dumb mistake (fixed in my last push)! Sorry for wasting your effort on testing that. I'll do some testing of my own with your test...
@allenwp I just tested with the code you shared above, and in my latest version I'm not seeing the corruption or the memory leak! When I have a chance, I'm...
@cyberpuffin-digital Thanks for the review and testing! I've updated this PR to cover most variant types: definitely all the ones that use reference counting and could leak, plus a couple...
> Maybe add a comment describing this? Makes sense! I've added a `@todo` comment in the conversion methods where we could consider avoiding the extra initialization in the future.
Yep, those ones should stay the way they are, because they are already not initializing their values.