comparison lib/misc.c @ 612:08e7b5186eb8

2004-11-4 Brian Masney <masneyb@gftp.org> * src/gtk/bookmarks.c (build_bookmarks_tree) - greatly simplified this function. Added helper function _add_tree_node() * lib/misc.c (gftp_free_bookmark) - free the path and oldpath variables
author masneyb
date Fri, 05 Nov 2004 02:05:22 +0000
parents d97e985f5dbe
children 07dc89f95076
comparison
equal deleted inserted replaced
611:ddce8b4016f8 612:08e7b5186eb8
990 void 990 void
991 gftp_free_bookmark (gftp_bookmarks_var * entry, int free_node) 991 gftp_free_bookmark (gftp_bookmarks_var * entry, int free_node)
992 { 992 {
993 gftp_bookmarks_var * tempentry; 993 gftp_bookmarks_var * tempentry;
994 994
995 if (entry->path)
996 g_free (entry->path);
997 if (entry->oldpath)
998 g_free (entry->oldpath);
995 if (entry->hostname) 999 if (entry->hostname)
996 g_free (entry->hostname); 1000 g_free (entry->hostname);
997 if (entry->remote_dir) 1001 if (entry->remote_dir)
998 g_free (entry->remote_dir); 1002 g_free (entry->remote_dir);
999 if (entry->local_dir) 1003 if (entry->local_dir)