mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-06 07:58:00 +02:00
core: ensure superclass' finalize method is called
Fixes a crash with PropertyChanged signals (triggered when using wifi + vpn and rmmod-ing the driver) where properties_changed_info_destroy() wouldn't get called on object destruction becuase the GObject finalize method never got called for the DHCP4Config and IP4Config objects.
This commit is contained in:
parent
715848c2c5
commit
bc7ac737ba
2 changed files with 4 additions and 0 deletions
|
|
@ -142,6 +142,8 @@ finalize (GObject *object)
|
|||
|
||||
g_free (priv->dbus_path);
|
||||
g_hash_table_destroy (priv->options);
|
||||
|
||||
G_OBJECT_CLASS (nm_dhcp4_config_parent_class)->finalize (object);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
|||
|
|
@ -711,6 +711,8 @@ finalize (GObject *object)
|
|||
g_array_free (priv->nameservers, TRUE);
|
||||
g_ptr_array_free (priv->domains, TRUE);
|
||||
g_ptr_array_free (priv->searches, TRUE);
|
||||
|
||||
G_OBJECT_CLASS (nm_ip4_config_parent_class)->finalize (object);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue