Source.Python
Source.Python copied to clipboard
Fix ownership issue for string_pointer and buffer overrun issue for string_array. (#472)
This fixes the issue(#472) of Python string object pointer being directly set during use of string_pointer and mitigates the problem of buffer overrun when using string_array at instance/pointer_attribute.
This change will cause memory leak when using string_pointer if the string is not properly managed, but this is necessary to maintain memory safety in statements such as pointer.set_string_pointer("string").
Are there any other issues?