mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-09 02:28:18 +02:00
modem: fix memory leak
Fixes:9b935fad9b('modem: don't use GAsyncResult pattern for disconnecting modem') (cherry picked from commit22cd9e754b) (cherry picked from commit47c772354e) (cherry picked from commit05319cb391)
This commit is contained in:
parent
98c019f708
commit
0ec37e55b2
1 changed files with 1 additions and 1 deletions
|
|
@ -1127,7 +1127,7 @@ simple_disconnect_ready (GObject *source_object,
|
||||||
{
|
{
|
||||||
MMModemSimple *modem_iface = MM_MODEM_SIMPLE (source_object);
|
MMModemSimple *modem_iface = MM_MODEM_SIMPLE (source_object);
|
||||||
DisconnectContext *ctx = user_data;
|
DisconnectContext *ctx = user_data;
|
||||||
GError *error = NULL;
|
gs_free_error GError *error = NULL;
|
||||||
|
|
||||||
if (!mm_modem_simple_disconnect_finish (modem_iface, res, &error)) {
|
if (!mm_modem_simple_disconnect_finish (modem_iface, res, &error)) {
|
||||||
if ( ctx->warn
|
if ( ctx->warn
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue