Bonjour/MYBonjourQuery.m
changeset 61 981f9d604c88
parent 31 1d6924779df7
     1.1 --- a/Bonjour/MYBonjourQuery.m	Wed Apr 29 13:29:31 2009 -0700
     1.2 +++ b/Bonjour/MYBonjourQuery.m	Tue Jul 21 10:04:10 2009 -0700
     1.3 @@ -106,6 +106,7 @@
     1.4                             void                                *context)
     1.5  {
     1.6      MYBonjourQuery *query = context;
     1.7 +    [query retain];
     1.8      @try{
     1.9          //LogTo(Bonjour, @"queryCallback for %@ (err=%i)", context,errorCode);
    1.10          if (!errorCode)
    1.11 @@ -116,6 +117,7 @@
    1.12                                   flags: flags];
    1.13      }catchAndReport(@"MYBonjourResolver query callback");
    1.14      [query gotResponse: errorCode];
    1.15 +    [query release];
    1.16  }
    1.17  
    1.18