[PATCH] convert char pointers to use g_autofree