Permalink
Browse files

Merge pull request #19 from tomashanacek/master

remove unused method from XMLRPCEncoder protocol, fix memory leak in XMLRPCRequest
  • Loading branch information...
eczarny committed Apr 22, 2012
2 parents 0fb4533 + 2d5e580 commit f9b7685ff256f4e16a7b987d9b36c47a4537375a
Showing with 2 additions and 4 deletions.
  1. +0 −2 XMLRPCEncoder.h
  2. +2 −2 XMLRPCRequest.m
View
@@ -6,8 +6,6 @@
#pragma mark -
- (void)setMethod: (NSString *)method withParameters: (NSArray *)parameters;
-
-- (void)setParameters: (NSArray*)parameters;
#pragma mark -
- (NSString *)method;
View
@@ -13,14 +13,14 @@ - (id)initWithURL: (NSURL *)URL withEncoder: (id<XMLRPCEncoder>)encoder {
myRequest = [[NSMutableURLRequest alloc] init];
}
- myXMLEncoder = encoder;
+ myXMLEncoder = [encoder retain];
}
return self;
}
- (id)initWithURL: (NSURL *)URL {
- return [self initWithURL:URL withEncoder:[[XMLRPCDefaultEncoder alloc] init]];
+ return [self initWithURL:URL withEncoder:[[[XMLRPCDefaultEncoder alloc] init] autorelease]];
}
#pragma mark -

0 comments on commit f9b7685

Please sign in to comment.