mirror of
https://gitlab.freedesktop.org/pipewire/wireplumber.git
synced 2025-12-20 06:30:04 +01:00
m-modem-manager: Use correct error clearing function
We segfault otherwise on error:
Thread 1 "wireplumber" received signal SIGSEGV, Segmentation fault.
g_type_check_instance_is_fundamentally_a (type_instance=type_instance@entry=0x7fffec008120,
fundamental_type=fundamental_type@entry=0x50 [GObject]) at ../../../gobject/gtype.c:3917
warning: 3917 ../../../gobject/gtype.c: No such file or directory
(gdb) bt
#0 g_type_check_instance_is_fundamentally_a
(type_instance=type_instance@entry=0x7fffec008120, fundamental_type=fundamental_type@entry=0x50 [GObject])
at ../../../gobject/gtype.c:3917
#1 0x00007ffff7eafe3d in g_object_unref (_object=0x7fffec008120) at ../../../gobject/gobject.c:4743
#2 0x00007ffff4784ec1 in list_calls_done (obj=<optimized out>, res=<optimized out>, data=0x5555556ab1b0)
at ../modules/module-modem-manager.c:209
Fixes: 2794764d5a (m-modem-manager: add module for tracking status of voice calls)
Signed-off-by: Evangelos Ribeiro Tzaras <devrtz@fortysixandtwo.eu>
This commit is contained in:
parent
6398bf1bce
commit
27b6027649
1 changed files with 1 additions and 2 deletions
|
|
@ -199,14 +199,13 @@ list_calls_done (GObject * obj,
|
||||||
GVariant *params;
|
GVariant *params;
|
||||||
GVariantIter *calls;
|
GVariantIter *calls;
|
||||||
gchar *path;
|
gchar *path;
|
||||||
GError *err = NULL;
|
g_autoptr (GError) err = NULL;
|
||||||
g_autoptr (GDBusConnection) conn = NULL;
|
g_autoptr (GDBusConnection) conn = NULL;
|
||||||
|
|
||||||
params = g_dbus_proxy_call_finish (G_DBUS_PROXY (obj), res, &err);
|
params = g_dbus_proxy_call_finish (G_DBUS_PROXY (obj), res, &err);
|
||||||
if (params == NULL) {
|
if (params == NULL) {
|
||||||
g_prefix_error (&err, "Failed to list active calls on startup: ");
|
g_prefix_error (&err, "Failed to list active calls on startup: ");
|
||||||
wp_warning_object (wpmm, "%s", err->message);
|
wp_warning_object (wpmm, "%s", err->message);
|
||||||
g_clear_object (&err);
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue