| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
As the class is scoped to the for loop it is destroyed which means that the memory for the string is cleared. This disallows any strings to be correctly converted into a git_strarray.
| Back | FazBrowse Home | New Git URL |
This fixes up the conversion of string arrays. The problem is that the ConvertArray function was setting the string pointer to the internals of NanUtf8String but the class was being destroyed freeing the memory.
I also removed the need to call ConstructStrArray as that just does more string duplications (strdup) that aren't really needed.
The commits on this branch provide a clean transistion between the two methods that are more obvious that the complete branch diff.