changeset 2096:39b4413ce4b3

[gaim-migrate @ 2106] leek soup committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Wed, 01 Aug 2001 06:36:37 +0000
parents df9710306152
children d933b30d67b0
files src/proxy.c
diffstat 1 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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;
 }