mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-08 21:10:25 +01:00
dns: cleanup disposing of NMDnsPlugin
This commit is contained in:
parent
6673d3ad7a
commit
ca733526e6
1 changed files with 1 additions and 8 deletions
|
|
@ -29,8 +29,6 @@
|
|||
#include "NetworkManagerUtils.h"
|
||||
|
||||
typedef struct {
|
||||
gboolean disposed;
|
||||
|
||||
GPid pid;
|
||||
guint watch_id;
|
||||
char *progname;
|
||||
|
|
@ -227,13 +225,8 @@ static void
|
|||
dispose (GObject *object)
|
||||
{
|
||||
NMDnsPlugin *self = NM_DNS_PLUGIN (object);
|
||||
NMDnsPluginPrivate *priv = NM_DNS_PLUGIN_GET_PRIVATE (self);
|
||||
|
||||
if (!priv->disposed) {
|
||||
priv->disposed = TRUE;
|
||||
|
||||
nm_dns_plugin_child_kill (self);
|
||||
}
|
||||
nm_dns_plugin_child_kill (self);
|
||||
|
||||
G_OBJECT_CLASS (nm_dns_plugin_parent_class)->dispose (object);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue