summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2016-04-21 09:39:25 +0200
committerThomas Haller <thaller@redhat.com>2016-04-22 13:39:23 +0200
commit3571356d9da55a9e68ac4dc2edf85d5b6d07f04f (patch)
treee61c13ce4ea58753d3d15adf60b7ea0874e49189 /src
parent853b8152663111bba8142b05752aa9eb560a340c (diff)
downloadNetworkManager-3571356d9da55a9e68ac4dc2edf85d5b6d07f04f.tar.gz
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)
Diffstat (limited to 'src')
-rw-r--r--src/dns-manager/nm-dns-plugin.c13
1 files changed, 0 insertions, 13 deletions
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
@@ -241,18 +241,6 @@ dispose (GObject *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)
{
GObjectClass *object_class = G_OBJECT_CLASS (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 */