Skip to content

Commit

Permalink
xr_3da: replace memory allocator on xrCore version
Browse files Browse the repository at this point in the history
  • Loading branch information
eagleivg committed Dec 10, 2018
1 parent 839dcd2 commit 17fbdaa
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/xr_3da/entry_point.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,10 @@ int main(int argc, char *argv[])
{
size_t sum = 0;
for(i = 1; i < argc; ++i)
sum += strlen(argv[i]) + 2;
sum += strlen(argv[i]) + strlen(" \0");

commandLine = (char*)malloc(sum);
memset(commandLine, 0, sum);
commandLine = (char*)xr_malloc(sum);
ZeroMemory(commandLine, sum);

for(i = 1; i < argc; ++i)
{
Expand All @@ -101,7 +101,7 @@ int main(int argc, char *argv[])

result = entry_point(commandLine);

free(commandLine);
xr_free(commandLine);
}
catch (const std::overflow_error& e)
{
Expand Down

0 comments on commit 17fbdaa

Please sign in to comment.