Skip to content

Instantly share code, notes, and snippets.

@az0
az0 / gi.patch
Created February 14, 2025 05:52
pygobject patch by soreau
diff --git a/gi/pygenum.c b/gi/pygenum.c
index 66c872e4..ea472f79 100644
--- a/gi/pygenum.c
+++ b/gi/pygenum.c
@@ -81,7 +81,7 @@ pyg_enum_from_gtype (GType gtype, int value)
static void
add_value (PyObject *dict, const char *value_nick, int value)
{
- g_autofree char *upper = g_ascii_strup(value_nick, -1);
+ char *upper = g_ascii_strup(value_nick, -1);