[krb5-auth-dialog: 9/15] Drop checks when chainng up finailze() and dispose()
- From: Guido Günther <guidog src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [krb5-auth-dialog: 9/15] Drop checks when chainng up finailze() and dispose()
- Date: Sat, 6 Feb 2021 19:16:58 +0000 (UTC)
commit ca2a0d48094196c7e9dd4e072ccb2c46a172a6a6
Author: Guido Günther <agx sigxcpu org>
Date: Sat Feb 6 18:51:59 2021 +0100
Drop checks when chainng up finailze() and dispose()
src/ka-applet.c | 6 ++----
src/ka-plugin-loader.c | 3 +--
2 files changed, 3 insertions(+), 6 deletions(-)
---
diff --git a/src/ka-applet.c b/src/ka-applet.c
index 2fca2be..05c7ddc 100644
--- a/src/ka-applet.c
+++ b/src/ka-applet.c
@@ -448,8 +448,7 @@ ka_applet_dispose (GObject *object)
applet->priv->loader = NULL;
}
- if (parent_class->dispose != NULL)
- parent_class->dispose (object);
+ parent_class->dispose (object);
}
@@ -465,8 +464,7 @@ ka_applet_finalize (GObject *object)
g_free (applet->priv->krb_msg);
/* no need to free applet->priv */
- if (parent_class->finalize != NULL)
- parent_class->finalize (object);
+ parent_class->finalize (object);
}
static void
diff --git a/src/ka-plugin-loader.c b/src/ka-plugin-loader.c
index 88351a8..697b16b 100644
--- a/src/ka-plugin-loader.c
+++ b/src/ka-plugin-loader.c
@@ -167,8 +167,7 @@ ka_plugin_loader_dispose(GObject *object)
if (priv->applet)
priv->applet = NULL;
- if (parent_class->dispose != NULL)
- parent_class->dispose (object);
+ parent_class->dispose (object);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]