diff options
author | Thomas Haller <thaller@redhat.com> | 2016-04-21 09:39:25 +0200 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2016-04-21 15:32:07 +0200 |
commit | 252258eb2a57af0dfa071d41d7e483d431f824fb (patch) | |
tree | 66ed6c1244b2749fd860123b43a9f41213763462 | |
parent | de9ad6bd8cd032a370f7795334ee8dd77a5fcd8d (diff) | |
download | NetworkManager-252258eb2a57af0dfa071d41d7e483d431f824fb.tar.gz |
dns: remove unnecessary finalize() implementation from NMDnsPlugin
dispose() already calls nm_dns_plugin_child_kill(), which clears
both pidfile and progname.
-rw-r--r-- | src/dns-manager/nm-dns-plugin.c | 13 |
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 */ |