mirror of
https://gitlab.freedesktop.org/pipewire/wireplumber.git
synced 2025-12-20 07:40:03 +01:00
m-modem-manager: Prefer automatic cleanup
Signed-off-by: Evangelos Ribeiro Tzaras <devrtz@fortysixandtwo.eu>
This commit is contained in:
parent
9e390f1121
commit
84e4752f1a
1 changed files with 3 additions and 8 deletions
|
|
@ -105,7 +105,7 @@ bind_call (GObject * obj, GAsyncResult * res, gpointer data)
|
||||||
WpModemManager *wpmm = WP_MODEM_MANAGER (data);
|
WpModemManager *wpmm = WP_MODEM_MANAGER (data);
|
||||||
g_autoptr (GError) err = NULL;
|
g_autoptr (GError) err = NULL;
|
||||||
GDBusProxy *call;
|
GDBusProxy *call;
|
||||||
GVariant *prop;
|
g_autoptr (GVariant) prop = NULL;
|
||||||
gint init_state;
|
gint init_state;
|
||||||
|
|
||||||
call = g_dbus_proxy_new_finish (res, &err);
|
call = g_dbus_proxy_new_finish (res, &err);
|
||||||
|
|
@ -123,8 +123,6 @@ bind_call (GObject * obj, GAsyncResult * res, gpointer data)
|
||||||
|
|
||||||
if (is_active_state (init_state))
|
if (is_active_state (init_state))
|
||||||
active_calls_inc (wpmm);
|
active_calls_inc (wpmm);
|
||||||
|
|
||||||
g_variant_unref (prop);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
wpmm->calls = g_list_prepend (wpmm->calls, call);
|
wpmm->calls = g_list_prepend (wpmm->calls, call);
|
||||||
|
|
@ -194,8 +192,8 @@ list_calls_done (GObject * obj,
|
||||||
gpointer data)
|
gpointer data)
|
||||||
{
|
{
|
||||||
WpModemManager *wpmm = WP_MODEM_MANAGER (data);
|
WpModemManager *wpmm = WP_MODEM_MANAGER (data);
|
||||||
GVariant *params;
|
g_autoptr (GVariant) params = NULL;
|
||||||
GVariantIter *calls;
|
g_autoptr (GVariantIter) calls = NULL;
|
||||||
gchar *path;
|
gchar *path;
|
||||||
g_autoptr (GError) err = NULL;
|
g_autoptr (GError) err = NULL;
|
||||||
g_autoptr (GDBusConnection) conn = NULL;
|
g_autoptr (GDBusConnection) conn = NULL;
|
||||||
|
|
@ -221,9 +219,6 @@ list_calls_done (GObject * obj,
|
||||||
bind_call,
|
bind_call,
|
||||||
wpmm);
|
wpmm);
|
||||||
}
|
}
|
||||||
|
|
||||||
g_variant_iter_free (calls);
|
|
||||||
g_variant_unref (params);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue