From 57fb071499a293537be7c5c7c8b452a3a9bb23d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20Trevisan=20=28Trevi=C3=B1o=29?= Date: Mon, 7 Oct 2024 11:50:35 +0200 Subject: [PATCH] clutter/actor: Avoid double-checking on NULL during free Part-of: --- clutter/clutter/clutter-actor.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/clutter/clutter/clutter-actor.c b/clutter/clutter/clutter-actor.c index 612371bc6..3d17de976 100644 --- a/clutter/clutter/clutter-actor.c +++ b/clutter/clutter/clutter-actor.c @@ -4136,8 +4136,7 @@ _clutter_actor_get_transform_info_or_defaults (ClutterActor *self) static void clutter_transform_info_free (gpointer data) { - if (data != NULL) - g_free (data); + g_free (data); } /*< private > @@ -15471,8 +15470,7 @@ static const ClutterLayoutInfo default_layout_info = { static void layout_info_free (gpointer data) { - if (G_LIKELY (data != NULL)) - g_free (data); + g_free (data); } /*< private >