diff options
| author | Nicolas Clapies <nclapies@entrouvert.com> | 2004-08-25 12:49:39 +0000 |
|---|---|---|
| committer | Nicolas Clapies <nclapies@entrouvert.com> | 2004-08-25 12:49:39 +0000 |
| commit | 2fa6620d597171f708dd2b6fe874afadea65a904 (patch) | |
| tree | 75c6b419cdf5d2cdc35c3eb4638989e86f48de9f | |
| parent | 09f7afd9909d9a6e5b6c0d148e2e8ba62648dc78 (diff) | |
fixed bug : at a done label, use to remove a provider got with lasso_provider_get_ref()
| -rw-r--r-- | lasso/id-ff/defederation.c | 30 |
1 files changed, 20 insertions, 10 deletions
diff --git a/lasso/id-ff/defederation.c b/lasso/id-ff/defederation.c index d85e262f..253e36ff 100644 --- a/lasso/id-ff/defederation.c +++ b/lasso/id-ff/defederation.c @@ -148,9 +148,9 @@ lasso_defederation_build_notification_msg(LassoDefederation *defederation) } done: - if (provider != NULL) { - lasso_provider_destroy(provider); - } +/* if (provider != NULL) { */ +/* lasso_provider_destroy(provider); */ +/* } */ if (protocolProfile != NULL) { xmlFree(protocolProfile); } @@ -542,21 +542,20 @@ lasso_defederation_dispose(LassoDefederation *defederation) } defederation->private->dispose_has_run = TRUE; - debug("Defederation object 0x%x disposed ...\n", defederation); - /* unref reference counted objects */ - parent_class->dispose(G_OBJECT(defederation)); + + debug("Defederation object 0x%x disposed ...\n", defederation); } static void lasso_defederation_finalize(LassoDefederation *defederation) -{ - debug("Defederation object 0x%x finalized ...\n", defederation); - +{ g_free (defederation->private); parent_class->finalize(G_OBJECT(defederation)); + + debug("Defederation object 0x%x finalized ...\n", defederation); } /*****************************************************************************/ @@ -564,13 +563,24 @@ lasso_defederation_finalize(LassoDefederation *defederation) /*****************************************************************************/ static void -lasso_defederation_instance_init(LassoDefederation *defederation) +lasso_defederation_instance_init(GTypeInstance *instance, + gpointer g_class) { + LassoDefederation *defederation = LASSO_DEFEDERATION(instance); + + defederation->private = g_new (LassoDefederationPrivate, 1); + defederation->private->dispose_has_run = FALSE; } static void lasso_defederation_class_init(LassoDefederationClass *class) { + GObjectClass *gobject_class = G_OBJECT_CLASS(class); + + parent_class = g_type_class_peek_parent(class); + /* override parent class methods */ + gobject_class->dispose = (void *)lasso_defederation_dispose; + gobject_class->finalize = (void *)lasso_defederation_finalize; } GType lasso_defederation_get_type() { |
