4 create_pyobject_from_string_list(GList
*list
)
11 if ((py_list
= PyList_New(0)) == NULL
) {
12 g_list_foreach(list
, (GFunc
)g_free
, NULL
);
17 PyObject
*obj
= PyString_FromString(list
->data
);
18 PyList_Append(py_list
, obj
);
21 list
= g_list_delete_link(list
, list
);