Mercurial > pidgin
diff src/core.c @ 4800:4af15fbcb00a
[gaim-migrate @ 5120]
Paco-Paco is cool, he fixed my mess, and then fixed other messes I didn't
even know we had.
committer: Tailor Script <tailor@pidgin.im>
author | Nathan Walp <nwalp@pidgin.im> |
---|---|
date | Sun, 16 Mar 2003 17:49:11 +0000 |
parents | 677d3cb193a1 |
children | b4ca2cc6bed9 |
line wrap: on
line diff
--- a/src/core.c Sun Mar 16 07:51:11 2003 +0000 +++ b/src/core.c Sun Mar 16 17:49:11 2003 +0000 @@ -100,7 +100,7 @@ gint sent; /* we'll let the write silently fail because the read will pick it up as dead */ g_io_channel_write_chars(ui->channel, data, len, &sent, &error); - g_free(error); + g_error_free(error); return sent; } @@ -182,7 +182,7 @@ } if(error) - g_free(error); + g_error_free(error); } static void plugin_handler(struct UI *ui, guchar subtype, guchar *data) @@ -298,11 +298,11 @@ gint total = 0; gint cur; - GError *error; + GError *error = NULL; while (total < len) { if (g_io_channel_read_chars(source, buf + total, len - total, &cur, &error) != G_IO_STATUS_NORMAL) { - g_free(error); + g_error_free(error); return -1; } if (cur == 0) @@ -352,7 +352,7 @@ uis = g_slist_remove(uis, ui); g_io_channel_shutdown(ui->channel, TRUE, &error); if(error) - g_free(error); + g_error_free(error); g_source_remove(ui->inpa); g_free(ui); return FALSE; @@ -363,7 +363,7 @@ uis = g_slist_remove(uis, ui); g_io_channel_shutdown(ui->channel, TRUE, &error); if(error) - g_free(error); + g_error_free(error); g_source_remove(ui->inpa); g_free(ui); return FALSE; @@ -374,7 +374,7 @@ uis = g_slist_remove(uis, ui); g_io_channel_shutdown(ui->channel, TRUE, &error); if(error) - g_free(error); + g_error_free(error); g_source_remove(ui->inpa); g_free(ui); return FALSE; @@ -387,7 +387,7 @@ uis = g_slist_remove(uis, ui); g_io_channel_shutdown(ui->channel, TRUE, &error); if(error) - g_free(error); + g_error_free(error); g_source_remove(ui->inpa); g_free(ui); return FALSE;