summaryrefslogtreecommitdiff
path: root/mate-panel/button-widget.c
diff options
context:
space:
mode:
authorrbuj <[email protected]>2021-11-28 13:19:58 +0100
committerLuke from DC <[email protected]>2021-12-16 06:52:11 +0000
commit6fbabd51619c92bcd8584e1bb2f12f2b52904ea6 (patch)
tree540229310cf7f6d6b60e82fcd2952a6caec31a4a /mate-panel/button-widget.c
parent94f3ec8c654363cd6a245eb9dca7c54f1b8f5649 (diff)
downloadmate-panel-6fbabd51619c92bcd8584e1bb2f12f2b52904ea6.tar.bz2
mate-panel-6fbabd51619c92bcd8584e1bb2f12f2b52904ea6.tar.xz
Use g_clear_pointer() and g_clear_object()
Diffstat (limited to 'mate-panel/button-widget.c')
-rw-r--r--mate-panel/button-widget.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/mate-panel/button-widget.c b/mate-panel/button-widget.c
index 6b839bc6..cd38a97f 100644
--- a/mate-panel/button-widget.c
+++ b/mate-panel/button-widget.c
@@ -209,8 +209,7 @@ button_widget_finalize (GObject *object)
button_widget_unset_surfaces (button);
- g_free (button->priv->filename);
- button->priv->filename = NULL;
+ g_clear_pointer (&button->priv->filename, g_free);
G_OBJECT_CLASS (button_widget_parent_class)->finalize (object);
}