Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

repository-get-search-path should not free the returned GSList pointer #79

Closed
igorcalabria opened this issue Dec 29, 2020 · 0 comments · Fixed by #80
Closed

repository-get-search-path should not free the returned GSList pointer #79

igorcalabria opened this issue Dec 29, 2020 · 0 comments · Fixed by #80

Comments

@igorcalabria
Copy link

From the docs

The list is internal to GIRepository and should not be freed, nor should its string elements.

To check this, simply call (gir:repository-get-search-path) two times. The second one will fail because the pointer was freed.
The issue is that g-slist-to-list always calls (g-slist-free pointer) at the end. So a quick solution would be to add a param to g-slist-to-list that determines if the original list should be freed or not.

This issue was closed.
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 a pull request may close this issue.

1 participant