From bc7ac737ba367ca19e83bcc6fc95b93c2a5deeeb Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Wed, 25 Feb 2009 13:50:34 -0500 Subject: [PATCH] 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. --- src/nm-dhcp4-config.c | 2 ++ src/nm-ip4-config.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/nm-dhcp4-config.c b/src/nm-dhcp4-config.c index 7e7e585a8a..5acf053f6b 100644 --- a/src/nm-dhcp4-config.c +++ b/src/nm-dhcp4-config.c @@ -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 diff --git a/src/nm-ip4-config.c b/src/nm-ip4-config.c index 1c14ccb647..40d3f5fa6e 100644 --- a/src/nm-ip4-config.c +++ b/src/nm-ip4-config.c @@ -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