diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2021-01-11 14:13:28 +0100 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2021-01-11 14:13:28 +0100 |
commit | 102de14c15b1c278988de376d03262bcb078211d (patch) | |
tree | 73ff38731b70f0180aff74e4cf6dff22acffa466 | |
parent | 8f465d44a5f40e1594db4f06b98b2436539a47bf (diff) |
telit: plug GPS data port leak
The _get_port_gps() returns a full reference, use _peek_port_gps()
instead.
See https://gitlab.freedesktop.org/mobile-broadband/ModemManager/-/issues/302
-rw-r--r-- | plugins/telit/mm-broadband-modem-telit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/telit/mm-broadband-modem-telit.c b/plugins/telit/mm-broadband-modem-telit.c index 11a86b12..daa7bddd 100644 --- a/plugins/telit/mm-broadband-modem-telit.c +++ b/plugins/telit/mm-broadband-modem-telit.c @@ -359,7 +359,7 @@ gpsp_test_ready (MMIfaceModemLocation *self, if (error) { mm_obj_dbg (self, "GPS controller not supported: %s", error->message); g_clear_error (&error); - } else if (mm_base_modem_get_port_gps (MM_BASE_MODEM (self))) + } else if (mm_base_modem_peek_port_gps (MM_BASE_MODEM (self))) sources |= (MM_MODEM_LOCATION_SOURCE_GPS_NMEA | MM_MODEM_LOCATION_SOURCE_GPS_RAW | MM_MODEM_LOCATION_SOURCE_GPS_UNMANAGED); |