Skip to content
This repository was archived by the owner on Jun 8, 2021. It is now read-only.

Conversation

@sdroege
Copy link
Member

@sdroege sdroege commented Feb 12, 2020

When called more than once or for a quark that already exists otherwise,
we would always leak the string. Instead pass an unowned string to
g_quark_from_string().


CC @GuillaumeGomez @EPashkin

When called more than once or for a quark that already exists otherwise,
we would always leak the string. Instead pass an unowned string to
g_quark_from_string().
@sdroege
Copy link
Member Author

sdroege commented Feb 12, 2020

@GuillaumeGomez This should also be part of the bugfix release made for #589. While leaks are safe, they're still annoying and not good :)

@GuillaumeGomez
Copy link
Member

👍

@GuillaumeGomez
Copy link
Member

We can add the "from_static_string" implementation by asking a &'static str though. Sending a PR for that.

@EPashkin
Copy link
Member

👍

@sdroege sdroege merged commit 691941a into gtk-rs:master Feb 13, 2020
@sdroege sdroege deleted the new-quark-leak branch February 13, 2020 05:13
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants