mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-01 09:30:13 +01:00
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 252258eb2a)
This commit is contained in:
parent
853b815266
commit
3571356d9d
1 changed files with 0 additions and 13 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue