diff options
author | rbuj <[email protected]> | 2021-11-28 13:19:58 +0100 |
---|---|---|
committer | Luke from DC <[email protected]> | 2021-12-16 06:52:11 +0000 |
commit | 6fbabd51619c92bcd8584e1bb2f12f2b52904ea6 (patch) | |
tree | 540229310cf7f6d6b60e82fcd2952a6caec31a4a /applets/notification_area/status-notifier/sn-dbus-menu.c | |
parent | 94f3ec8c654363cd6a245eb9dca7c54f1b8f5649 (diff) | |
download | mate-panel-6fbabd51619c92bcd8584e1bb2f12f2b52904ea6.tar.bz2 mate-panel-6fbabd51619c92bcd8584e1bb2f12f2b52904ea6.tar.xz |
Use g_clear_pointer() and g_clear_object()
Diffstat (limited to 'applets/notification_area/status-notifier/sn-dbus-menu.c')
-rw-r--r-- | applets/notification_area/status-notifier/sn-dbus-menu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/applets/notification_area/status-notifier/sn-dbus-menu.c b/applets/notification_area/status-notifier/sn-dbus-menu.c index 03a95a4b..323663a5 100644 --- a/applets/notification_area/status-notifier/sn-dbus-menu.c +++ b/applets/notification_area/status-notifier/sn-dbus-menu.c @@ -419,8 +419,8 @@ sn_dbus_menu_finalize (GObject *object) menu = SN_DBUS_MENU (object); - g_free (menu->bus_name); - g_free (menu->object_path); + g_clear_pointer (&menu->bus_name, g_free); + g_clear_pointer (&menu->object_path, g_free); G_OBJECT_CLASS (sn_dbus_menu_parent_class)->finalize (object); } |