Skip to content

Fix memory leak#36

Open
daltomi wants to merge 2 commits into
DIVGAMES:features/cictec-fixesfrom
daltomi:fix-memory-leak
Open

Fix memory leak#36
daltomi wants to merge 2 commits into
DIVGAMES:features/cictec-fixesfrom
daltomi:fix-memory-leak

Conversation

@daltomi

@daltomi daltomi commented Sep 3, 2022

Copy link
Copy Markdown

Hi all.

The main commit is: 8e58e3e (Fix memory leak)

Then I realized that smodes is a temporary variable, so I decided that it shouldn't be static: 296d010

Greetings.

The 'smodes' variable is temporary so instead of being static it uses allocated memory.

Note that the 'smodes' variable must be null-terminated.
@MikeDX

MikeDX commented Sep 3, 2022

Copy link
Copy Markdown
Collaborator

Looks great! Thank you

@MikeDX

MikeDX commented Sep 3, 2022

Copy link
Copy Markdown
Collaborator

I think this could and should go into the main branch, rather than @CicTec branch. I really should look into this project again and do some maintenance

@daltomi

daltomi commented Sep 3, 2022

Copy link
Copy Markdown
Author

I really should look into this project again and do some maintenance

That would be a great help for those of us who are just beginning to participate, thank you!.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants