Best practices: g_malloc(c * sizeof(y)) -> g_malloc_n(c, sizeof(y))