diff -r 1d6924779df7 -r 981f9d604c88 Bonjour/MYBonjourQuery.m --- a/Bonjour/MYBonjourQuery.m Wed Apr 29 13:29:31 2009 -0700 +++ b/Bonjour/MYBonjourQuery.m Tue Jul 21 10:04:10 2009 -0700 @@ -106,6 +106,7 @@ void *context) { MYBonjourQuery *query = context; + [query retain]; @try{ //LogTo(Bonjour, @"queryCallback for %@ (err=%i)", context,errorCode); if (!errorCode) @@ -116,6 +117,7 @@ flags: flags]; }catchAndReport(@"MYBonjourResolver query callback"); [query gotResponse: errorCode]; + [query release]; }