g_malloc won't return NULL, but abort the program. As we don't check for NULl, this is the better solution.