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:
Dan Williams 2009-02-25 13:50:34 -05:00
parent 715848c2c5
commit bc7ac737ba
2 changed files with 4 additions and 0 deletions

View file

@ -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

View file

@ -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