mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-05 11:08:03 +02:00
device: use correct field "l3cfg_" to clear in dispose()
The fields "l3cfg" and "l3cfg_" are union aliases. One of them is const, the other is not. The idea is that all places that modify the field need to use the special name "l3cfg_", and grepping for that will lead you to all the relevant places. This mistake happened, because g_clear_object() casts constness away. Fixes:58287cbcc0('core: rework IP configuration in NetworkManager using layer 3 configuration') (cherry picked from commit8cb739031d)
This commit is contained in:
parent
e4cc504af5
commit
ed47047a36
1 changed files with 1 additions and 1 deletions
|
|
@ -17841,7 +17841,7 @@ dispose(GObject *object)
|
|||
priv->sriov.next = NULL;
|
||||
}
|
||||
|
||||
g_clear_object(&priv->l3cfg);
|
||||
g_clear_object(&priv->l3cfg_);
|
||||
g_clear_object(&priv->l3ipdata_4.ip_config);
|
||||
g_clear_object(&priv->l3ipdata_6.ip_config);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue