# HG changeset patch # User Eric Warmenhoven # Date 996647797 0 # Node ID 39b4413ce4b360b712ea928f4b93ddbe7426df9a # Parent df9710306152b7bcfc3b4c3991afe5be573e66dd [gaim-migrate @ 2106] leek soup committer: Tailor Script diff -r df9710306152 -r 39b4413ce4b3 src/proxy.c --- a/src/proxy.c Wed Aug 01 06:16:36 2001 +0000 +++ b/src/proxy.c Wed Aug 01 06:36:37 2001 +0000 @@ -61,6 +61,11 @@ gpointer data; } GaimIOClosure; +static void gaim_io_destroy(gpointer data) +{ + g_free(data); +} + static gboolean gaim_io_invoke(GIOChannel *source, GIOCondition condition, gpointer data) { GaimIOClosure *closure = data; @@ -93,7 +98,8 @@ cond |= GAIM_WRITE_COND; channel = g_io_channel_unix_new(source); - result = g_io_add_watch(channel, cond, gaim_io_invoke, closure); + result = g_io_add_watch_full(channel, G_PRIORITY_DEFAULT, cond, + gaim_io_invoke, closure, gaim_io_destroy); g_io_channel_unref(channel); return result; }