frames: Use g_clear_pointer
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3611>
This commit is contained in:
parent
9a5aa846e4
commit
fa67588788
1 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue