diff options
Diffstat (limited to 'libmessaging-menu')
-rw-r--r-- | libmessaging-menu/messaging-menu.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libmessaging-menu/messaging-menu.c b/libmessaging-menu/messaging-menu.c index 4b88a08..59f93a2 100644 --- a/libmessaging-menu/messaging-menu.c +++ b/libmessaging-menu/messaging-menu.c @@ -191,7 +191,7 @@ export_menus_and_actions (GObject *source, if (!app->action_export_id) { g_warning ("unable to export action group: %s", error->message); - g_error_free (error); + g_clear_error (&error); } app->menu_export_id = g_dbus_connection_export_menu_model (app->bus, @@ -201,7 +201,7 @@ export_menus_and_actions (GObject *source, if (!app->menu_export_id) { g_warning ("unable to export menu: %s", error->message); - g_error_free (error); + g_clear_error (&error); } g_free (object_path); @@ -259,7 +259,6 @@ messaging_menu_app_dispose (GObject *object) if (app->bus) { - if (app->action_export_id > 0) g_dbus_connection_unexport_action_group (app->bus, app->action_export_id); |