1
0
Fork 0

frames: Use g_clear_pointer

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3611>
This commit is contained in:
Sebastian Keller 2024-02-22 10:22:21 +01:00 committed by Marge Bot
parent 9a5aa846e4
commit fa67588788

View file

@ -477,9 +477,9 @@ meta_frame_finalize (GObject *object)
{
MetaFrame *frame = META_FRAME (object);
g_free (frame->net_wm_visible_name);
g_free (frame->net_wm_name);
g_free (frame->wm_name);
g_clear_pointer (&frame->net_wm_visible_name, g_free);
g_clear_pointer (&frame->net_wm_name, g_free);
g_clear_pointer (&frame->wm_name, g_free);
G_OBJECT_CLASS (meta_frame_parent_class)->finalize (object);
}