changeset 14510:1d73e11d8787

[gaim-migrate @ 17230] Evan, see if this fixes the MSN get info crashes for you. Basically canceled DNS requests weren't being removed from the queue, then Gaim would pop them off the queue, but since the request had been canceled the memory was free'd and is now invalid. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Sun, 10 Sep 2006 22:33:28 +0000
parents ebbcd0ad2473
children f309a5b3f184
files libgaim/dnsquery.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libgaim/dnsquery.c	Sun Sep 10 21:21:21 2006 +0000
+++ b/libgaim/dnsquery.c	Sun Sep 10 22:33:28 2006 +0000
@@ -851,6 +851,8 @@
 gaim_dnsquery_destroy(GaimDnsQueryData *query_data)
 {
 #if defined(__unix__) || defined(__APPLE__)
+	g_queue_remove(queued_requests, query_data);
+
 	if (query_data->resolver != NULL)
 		/*
 		 * Ideally we would tell our resolver child to stop resolving