This is an automated email from the git hooks/post-receive script.
git pushed a commit to branch master
in repository enlightenment.
View the commit online.
commit b1bcdd303d5ae4f30fa6db02ad0f86c03ff6799d
Author: Carsten Haitzler <[email protected]>
AuthorDate: Tue Apr 7 09:12:57 2026 +0100
music-control - only unref dbus stuff if not null on shutdown
---
src/modules/music-control/e_mod_main.c | 14 +++++++++-----
1 file changed, 9 insertions(+), 5 deletions(-)
diff --git a/src/modules/music-control/e_mod_main.c b/src/modules/music-control/e_mod_main.c
index 997475c85..8cbee713d 100644
--- a/src/modules/music-control/e_mod_main.c
+++ b/src/modules/music-control/e_mod_main.c
@@ -677,12 +677,16 @@ e_modapi_shutdown(E_Module *m EINA_UNUSED)
eldbus_pending_cancel(ctxt->bus_list_pend);
ctxt->bus_list_pend = NULL;
}
- eldbus_name_owner_changed_callback_del
- (ctxt->conn, ctxt->dbus_name, cb_name_owner_changed, ctxt);
+ if ((ctxt->conn) && (ctxt->dbus_name))
+ eldbus_name_owner_changed_callback_del
+ (ctxt->conn, ctxt->dbus_name, cb_name_owner_changed, ctxt);
eina_stringshare_del(ctxt->dbus_name);
- media_player2_player_proxy_unref(ctxt->mpris2_player);
- mpris_media_player2_proxy_unref(ctxt->mrpis2);
- eldbus_connection_unref(ctxt->conn);
+ if (ctxt->mpris2_player) media_player2_player_proxy_unref(ctxt->mpris2_player);
+ ctxt->mpris2_player = NULL;
+ if (ctxt->mrpis2) mpris_media_player2_proxy_unref(ctxt->mrpis2);
+ ctxt->mrpis2 = NULL;
+ if (ctxt->conn) eldbus_connection_unref(ctxt->conn);
+ ctxt->conn = NULL;
e_gadcon_provider_unregister(&_gc_class);
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.