Backport fixes for CVE-2026-1484, CVE-2026-1485, CVE-2026-1489.

Source: Fedora 42 mingw-glib2 Major Memory Leak Denial of Service 2026-1a6369b123