Mercurial > gftp.yaz
diff lib/misc.c @ 598:fa0838b22b14
2004-10-29 Brian Masney <masneyb@gftp.org>
* lib/gftp.h lib/misc.c lib/protocols.c lib/rfc2068.c lib/rfc959.c
lib/sshv2.c src/gtk/dnd.c src/gtk/view_dialog.c src/uicommon/gftpui.c
src/uicommon/gftpuicallbacks.c - removed free_fdata(). Added
free_it parameter to gftp_file_destroy()
author | masneyb |
---|---|
date | Fri, 29 Oct 2004 20:05:32 +0000 |
parents | 7f54d0c0edbc |
children | d97e985f5dbe |
line wrap: on
line diff
--- a/lib/misc.c Wed Oct 27 22:18:30 2004 +0000 +++ b/lib/misc.c Fri Oct 29 20:05:32 2004 +0000 @@ -434,32 +434,13 @@ while (templist != NULL) { tempfle = templist->data; - free_fdata (tempfle); + gftp_file_destroy (tempfle, 1); templist = templist->next; } g_list_free (filelist); } -void -free_fdata (gftp_file * fle) -{ - if (fle->file) - g_free (fle->file); - if (fle->utf8_file) - g_free (fle->utf8_file); - if (fle->user) - g_free (fle->user); - if (fle->group) - g_free (fle->group); - if (fle->destfile) - g_free (fle->destfile); - if (fle->fd > 0) - close (fle->fd); - g_free (fle); -} - - gftp_file * copy_fdata (gftp_file * fle) {