mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-04-26 16:00:43 +02:00
settings: fix failed assertion
Fix the following assertion failure: g_object_ref: assertion 'G_IS_OBJECT (object)' failed. nm_settings_add_connection() can return a NULL connection. Fixes:f034f17ff6('settings: keep the added connection alive for a bit longer') (cherry picked from commit48ce3628c5) (cherry picked from commitd80818e6ca)
This commit is contained in:
parent
764ad1b191
commit
b7cd8f283b
1 changed files with 1 additions and 1 deletions
|
|
@ -1174,7 +1174,7 @@ pk_add_cb (NMAuthChain *chain,
|
|||
* because it's found to be incompatible with the device on AddAndActivate).
|
||||
* But we need to keep it alive for a bit longer, precisely to check wehther
|
||||
* it's still known to the setting manager. */
|
||||
g_object_ref (added);
|
||||
nm_g_object_ref (added);
|
||||
}
|
||||
|
||||
callback = nm_auth_chain_get_data (chain, "callback");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue