From 4463c2ccc2b5d7abbc5241edf973ce4fccca9648 Mon Sep 17 00:00:00 2001 From: Benjamin Dauvergne Date: Fri, 27 Mar 2009 15:06:37 +0000 Subject: ID-FF 1.2: Add trace in dispose for LassoProfile * lasso/id-ff/profile.c: add tracing code activaged by LASSO_FLAG=memory-debug to print release of field values. Complement the existing code in generic deallocation procedure in LassoNode. --- lasso/id-ff/profile.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lasso/id-ff/profile.c b/lasso/id-ff/profile.c index cbc52a01..650c29f7 100644 --- a/lasso/id-ff/profile.c +++ b/lasso/id-ff/profile.c @@ -43,6 +43,7 @@ #include #include "../utils.h" +#include "../debug.h" /*****************************************************************************/ /* public functions */ @@ -511,12 +512,16 @@ dispose(GObject *object) } profile->private_data->dispose_has_run = TRUE; + + lasso_mem_debug("LassoProfile", "Server", profile->server); lasso_server_destroy(profile->server); profile->server = NULL; + lasso_mem_debug("LassoProfile", "Identity", profile->identity); lasso_identity_destroy(profile->identity); profile->identity = NULL; + lasso_mem_debug("LassoProfile", "Session", profile->session); lasso_session_destroy(profile->session); profile->session = NULL; -- cgit