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

wmclockmon-0.8.1 #60

Open
svgol opened this issue Feb 27, 2024 · 2 comments
Open

wmclockmon-0.8.1 #60

svgol opened this issue Feb 27, 2024 · 2 comments

Comments

@svgol
Copy link

svgol commented Feb 27, 2024

It is supplied with a configuration utility wmclockmon-config which crashes on pushing any of two buttons 'Save'.
The cause is it tries to free memory allocated in an external library, namely by gtk_entry_get_text().
The documentation of the function states that its return value

A pointer to the contents of the widget as a string. This string points to internally allocated storage in the widget and must not be freed, modified or stored.

The attached patch fixes the problem

fix_crashes_on_free.patch.tgz

@d-torrance
Copy link
Member

Thanks! Would you be able to send this patch to [email protected]?

@svgol
Copy link
Author

svgol commented Feb 28, 2024

Sent

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

No branches or pull requests

2 participants