Mercurial > pidgin.yaz
diff libpurple/protocols/silc/ft.c @ 22800:67a4c8c46f78
Cleanup allocations/frees to match and plug some leaks.
author | Daniel Atallah <daniel.atallah@gmail.com> |
---|---|
date | Sat, 03 May 2008 07:13:58 +0000 |
parents | 2f35d56d2add |
children | f1437342cc0e |
line wrap: on
line diff
--- a/libpurple/protocols/silc/ft.c Sat May 03 03:02:25 2008 +0000 +++ b/libpurple/protocols/silc/ft.c Sat May 03 07:13:58 2008 +0000 @@ -424,12 +424,12 @@ (const char *)context); purple_notify_error(gc, _("Secure File Transfer"), _("Cannot send file"), tmp); - silc_free(context); + g_free(context); return; } silcpurple_ftp_send_file(client->application, (const char *)context, NULL); - silc_free(context); + g_free(context); } PurpleXfer *silcpurple_ftp_new_xfer(PurpleConnection *gc, const char *name) @@ -447,7 +447,7 @@ if (!clients) { silc_client_get_clients(client, conn, name, NULL, silcpurple_ftp_send_file_resolved, - strdup(name)); + g_strdup(name)); return NULL; } silc_dlist_start(clients);