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: 2794764d5a ("m-modem-manager: add module for tracking status of voice calls")
This commit is contained in:
Barnabás Pőcze 2025-12-15 22:10:28 +01:00 committed by George Kiagiadakis
parent a5538f4167
commit 3fb5b775ee

View file

@ -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;