From 101126176a956eb6a18b43fc2a08dd570fda122c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20Trevisan=20=28Trevi=C3=B1o=29?= Date: Mon, 7 Oct 2024 11:23:38 +0200 Subject: [PATCH] clutter/actor: Use autopointer for GStrv everywhere Part-of: --- clutter/clutter/clutter-actor.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/clutter/clutter/clutter-actor.c b/clutter/clutter/clutter-actor.c index 9a25be527..dd4debbe1 100644 --- a/clutter/clutter/clutter-actor.c +++ b/clutter/clutter/clutter-actor.c @@ -12072,7 +12072,7 @@ get_meta_from_animation_property (ClutterActor *actor, { ClutterActorPrivate *priv = actor->priv; ClutterActorMeta *meta = NULL; - gchar **tokens; + g_auto (GStrv) tokens = NULL; /* if this is not a special property, fall through */ if (name[0] != '@') @@ -12096,7 +12096,6 @@ get_meta_from_animation_property (ClutterActor *actor, { CLUTTER_NOTE (ANIMATION, "Invalid property name '%s'", name + 1); - g_strfreev (tokens); return NULL; } @@ -12118,8 +12117,6 @@ get_meta_from_animation_property (ClutterActor *actor, tokens[1], tokens[0]); - g_strfreev (tokens); - return meta; }