From b0a4e029db7086fab2efeef60fc7a312ff32661d Mon Sep 17 00:00:00 2001 From: rds <rds> Date: Thu, 2 Oct 2008 08:33:11 +0000 Subject: [PATCH] free what we no longer need --- src/include/ZMap/zmapConfigLoader.h | 6 +++--- src/zmapView/zmapView.c | 9 +++++---- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/src/include/ZMap/zmapConfigLoader.h b/src/include/ZMap/zmapConfigLoader.h index 656590332..1788664e3 100755 --- a/src/include/ZMap/zmapConfigLoader.h +++ b/src/include/ZMap/zmapConfigLoader.h @@ -27,9 +27,9 @@ * * Exported functions: See XXXXXXXXXXXXX.h * HISTORY: - * Last edited: Sep 30 15:22 2008 (rds) + * Last edited: Oct 2 08:59 2008 (rds) * Created: Tue Aug 26 12:39:42 2008 (rds) - * CVS info: $Id: zmapConfigLoader.h,v 1.1 2008-10-01 15:27:34 rds Exp $ + * CVS info: $Id: zmapConfigLoader.h,v 1.2 2008-10-02 08:33:30 rds Exp $ *------------------------------------------------------------------- */ @@ -44,6 +44,6 @@ ZMapConfigIniContext zMapConfigIniContextProvide(); GList *zMapConfigIniContextGetSources(ZMapConfigIniContext context); - +void zMapConfigSourcesFreeList(GList *config_sources_list); #endif /* ZMAP_CONFIG_LOADER_H */ diff --git a/src/zmapView/zmapView.c b/src/zmapView/zmapView.c index 8525f7c7d..2ec049217 100755 --- a/src/zmapView/zmapView.c +++ b/src/zmapView/zmapView.c @@ -25,9 +25,9 @@ * Description: * Exported functions: See ZMap/zmapView.h * HISTORY: - * Last edited: Oct 1 16:43 2008 (rds) + * Last edited: Oct 2 09:11 2008 (rds) * Created: Thu May 13 15:28:26 2004 (edgrif) - * CVS info: $Id: zmapView.c,v 1.135 2008-10-01 15:43:15 rds Exp $ + * CVS info: $Id: zmapView.c,v 1.136 2008-10-02 08:33:11 rds Exp $ *------------------------------------------------------------------- */ @@ -311,7 +311,7 @@ gboolean zMapViewConnect(ZMapView zmap_view, char *config_str) else { ZMapConfigIniContext context ; - GList *settings_list = NULL; + GList *settings_list = NULL, *free_this_list = NULL; zMapStartTimer(ZMAP_GLOBAL_TIMER) ; @@ -335,7 +335,7 @@ gboolean zMapViewConnect(ZMapView zmap_view, char *config_str) } /* Set up connections to the named servers. */ - if (result && settings_list) + if (result && (free_this_list = settings_list)) { int connections = 0 ; @@ -419,6 +419,7 @@ gboolean zMapViewConnect(ZMapView zmap_view, char *config_str) if (!connections) result = FALSE ; + zMapConfigSourcesFreeList(free_this_list); } else result = FALSE; -- GitLab