Skip to content

Conversation

yvt
Copy link
Contributor

@yvt yvt commented Jun 30, 2025

g_value_take_boxed takes full ownership of a provided object, so we should convert GStrings into *mut c_chars by into_glib_ptr.

Fixes the segfault that occurs when releasing the Value created by converting from Vec<GString>.

`g_value_take_boxed` takes a full ownership of a provided object, so we
should convert `GString`s by `into_glib_ptr`.
@sdroege sdroege added the needs-backport PR needs backporting to the current stable branch label Jun 30, 2025
@sdroege sdroege merged commit 9c05265 into gtk-rs:main Jun 30, 2025
48 checks passed
@yvt yvt deleted the fix-value-from-vec-gstring branch June 30, 2025 15:41
@sdroege sdroege added backported PR was backported to the current stable branch and removed needs-backport PR needs backporting to the current stable branch labels Aug 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backported PR was backported to the current stable branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants