comparison src/gtk/dnd.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 3bf77096052c
comparison
equal deleted inserted replaced
597:83f6f9c37d0d 598:fa0838b22b14
52 if (gftp_parse_url (current_ftpdata, url) != 0 || 52 if (gftp_parse_url (current_ftpdata, url) != 0 ||
53 current_ftpdata->directory == NULL || 53 current_ftpdata->directory == NULL ||
54 (pos = strrchr (current_ftpdata->directory, '/')) == NULL) 54 (pos = strrchr (current_ftpdata->directory, '/')) == NULL)
55 { 55 {
56 gftp_request_destroy (current_ftpdata, 1); 56 gftp_request_destroy (current_ftpdata, 1);
57 free_fdata (newfle); 57 gftp_file_destroy (newfle, 1);
58 return (0); 58 return (0);
59 } 59 }
60 60
61 *pos++ = '\0'; 61 *pos++ = '\0';
62 if (compare_request (current_ftpdata, wdata->request, 1)) 62 if (compare_request (current_ftpdata, wdata->request, 1))
63 { 63 {
64 gftp_request_destroy (current_ftpdata, 1); 64 gftp_request_destroy (current_ftpdata, 1);
65 free_fdata (newfle); 65 gftp_file_destroy (newfle, 1);
66 return (0); 66 return (0);
67 } 67 }
68 68
69 if (fromwdata != NULL && 69 if (fromwdata != NULL &&
70 compare_request (current_ftpdata, fromwdata->request, 0)) 70 compare_request (current_ftpdata, fromwdata->request, 0))