Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Declare a variable at the beginning to be in scope of original functi…
…on and .c_str() wouldn't be a dangling pointer at that point I didn't immediately release that the result was a dangling pointer, the life of which ended at the end of the condition Of course, since we didn't allocate memory to it, after the original function is called it will still be freed, but it seems that the engine no longer uses this pointer too, and therefore we don't seem to need to store it.... So even if then it will be dangling, then specifically with this function it should not cause some issues after its call
- Loading branch information