From 3fb5b775eed9343dad91ad1818ebf27a950f59be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Barnab=C3=A1s=20P=C5=91cze?= Date: Mon, 15 Dec 2025 22:10:28 +0100 Subject: [PATCH] m-modem-manager: Unref `WpCore` When getting the "core" property from a `WpObject`, a strong reference is returned to the `WpCore` object. This has to be unref-d when not needed anymore. `wp_modem_manager_enable()` fails to do so, so fix it. Fixes: 2794764d5ae889 ("m-modem-manager: add module for tracking status of voice calls") --- modules/module-modem-manager.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/module-modem-manager.c b/modules/module-modem-manager.c index 92218b9b..59d9d411 100644 --- a/modules/module-modem-manager.c +++ b/modules/module-modem-manager.c @@ -347,7 +347,7 @@ static void wp_modem_manager_enable (WpPlugin * self, WpTransition * transition) { WpModemManager *wpmm = WP_MODEM_MANAGER (self); - WpCore *core; + g_autoptr (WpCore) core = NULL; GError *err; g_autoptr (GDBusConnection) conn = NULL;