1
0
Fork 0

clutter/actor: Use autopointer for GStrv everywhere

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/4071>
This commit is contained in:
Marco Trevisan (Treviño) 2024-10-07 11:23:38 +02:00 committed by Marge Bot
parent 1985d9ccdd
commit 101126176a

View file

@ -12072,7 +12072,7 @@ get_meta_from_animation_property (ClutterActor *actor,
{ {
ClutterActorPrivate *priv = actor->priv; ClutterActorPrivate *priv = actor->priv;
ClutterActorMeta *meta = NULL; ClutterActorMeta *meta = NULL;
gchar **tokens; g_auto (GStrv) tokens = NULL;
/* if this is not a special property, fall through */ /* if this is not a special property, fall through */
if (name[0] != '@') if (name[0] != '@')
@ -12096,7 +12096,6 @@ get_meta_from_animation_property (ClutterActor *actor,
{ {
CLUTTER_NOTE (ANIMATION, "Invalid property name '%s'", CLUTTER_NOTE (ANIMATION, "Invalid property name '%s'",
name + 1); name + 1);
g_strfreev (tokens);
return NULL; return NULL;
} }
@ -12118,8 +12117,6 @@ get_meta_from_animation_property (ClutterActor *actor,
tokens[1], tokens[1],
tokens[0]); tokens[0]);
g_strfreev (tokens);
return meta; return meta;
} }