clutter/actor: Avoid double-checking on NULL during free
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/4071>
This commit is contained in:
parent
009ca767aa
commit
57fb071499
1 changed files with 2 additions and 4 deletions
|
@ -4136,8 +4136,7 @@ _clutter_actor_get_transform_info_or_defaults (ClutterActor *self)
|
||||||
static void
|
static void
|
||||||
clutter_transform_info_free (gpointer data)
|
clutter_transform_info_free (gpointer data)
|
||||||
{
|
{
|
||||||
if (data != NULL)
|
g_free (data);
|
||||||
g_free (data);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*< private >
|
/*< private >
|
||||||
|
@ -15471,8 +15470,7 @@ static const ClutterLayoutInfo default_layout_info = {
|
||||||
static void
|
static void
|
||||||
layout_info_free (gpointer data)
|
layout_info_free (gpointer data)
|
||||||
{
|
{
|
||||||
if (G_LIKELY (data != NULL))
|
g_free (data);
|
||||||
g_free (data);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*< private >
|
/*< private >
|
||||||
|
|
Loading…
Reference in a new issue