From 3571356d9da55a9e68ac4dc2edf85d5b6d07f04f Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Thu, 21 Apr 2016 09:39:25 +0200 Subject: dns: remove unnecessary finalize() implementation from NMDnsPlugin dispose() already calls nm_dns_plugin_child_kill(), which clears both pidfile and progname. (cherry picked from commit 252258eb2a57af0dfa071d41d7e483d431f824fb) --- src/dns-manager/nm-dns-plugin.c | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'src') diff --git a/src/dns-manager/nm-dns-plugin.c b/src/dns-manager/nm-dns-plugin.c index 850bd9a3e3..c510e65b13 100644 --- a/src/dns-manager/nm-dns-plugin.c +++ b/src/dns-manager/nm-dns-plugin.c @@ -240,18 +240,6 @@ dispose (GObject *object) G_OBJECT_CLASS (nm_dns_plugin_parent_class)->dispose (object); } -static void -finalize (GObject *object) -{ - NMDnsPlugin *self = NM_DNS_PLUGIN (object); - NMDnsPluginPrivate *priv = NM_DNS_PLUGIN_GET_PRIVATE (self); - - g_free (priv->progname); - g_free (priv->pidfile); - - G_OBJECT_CLASS (nm_dns_plugin_parent_class)->finalize (object); -} - static void nm_dns_plugin_class_init (NMDnsPluginClass *plugin_class) { @@ -261,7 +249,6 @@ nm_dns_plugin_class_init (NMDnsPluginClass *plugin_class) /* virtual methods */ object_class->dispose = dispose; - object_class->finalize = finalize; plugin_class->is_caching = is_caching; /* signals */ -- cgit v1.2.1