comparison src/uicommon/gftpui.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 81b957b00691
children 5f2808c65e46
comparison
equal deleted inserted replaced
597:83f6f9c37d0d 598:fa0838b22b14
629 request->logging_function (gftp_logging_misc_nolog, request, "%s\n", 629 request->logging_function (gftp_logging_misc_nolog, request, "%s\n",
630 tempstr); 630 tempstr);
631 g_free (tempstr); 631 g_free (tempstr);
632 632
633 templist = templist->next; 633 templist = templist->next;
634 gftp_file_destroy (fle); 634 gftp_file_destroy (fle, 1);
635 g_free (fle);
636 } 635 }
637 636
638 637
639 if (cdata->files != NULL) 638 if (cdata->files != NULL)
640 g_list_free (cdata->files); 639 g_list_free (cdata->files);
895 fle = g_malloc0 (sizeof (*fle)); 894 fle = g_malloc0 (sizeof (*fle));
896 while (gftp_get_next_file (tdata->fromreq, filespec, fle) > 0) 895 while (gftp_get_next_file (tdata->fromreq, filespec, fle) > 0)
897 { 896 {
898 if (strcmp (fle->file, ".") == 0 || strcmp (fle->file, "..") == 0) 897 if (strcmp (fle->file, ".") == 0 || strcmp (fle->file, "..") == 0)
899 { 898 {
900 gftp_file_destroy (fle); 899 gftp_file_destroy (fle, 0);
901 continue; 900 continue;
902 } 901 }
903 902
904 tdata->files = g_list_append (tdata->files, fle); 903 tdata->files = g_list_append (tdata->files, fle);
905 fle = g_malloc (sizeof (*fle)); 904 fle = g_malloc (sizeof (*fle));