Permalink
Browse files

[ios-sdk] Fix two leaks

Summary: Found two leaks running under Instruments. Fixed them.

Test Plan:
- Ran SwitchUserSample and Scrumptious, did not see these leaks

Revert Plan:

Reviewers: jacl, mmarucheck, gregschechte, ayden

Reviewed By: jacl

CC: platform-diffs@lists

Differential Revision: https://phabricator.fb.com/D497631
  • Loading branch information...
clang13 committed Jun 18, 2012
1 parent 860caad commit e8b33e240fb11183211a2c280ec1435262b9c2d2
Showing with 6 additions and 5 deletions.
  1. +1 −0 src/FBGraphObjectTableDataSource.m
  2. +5 −5 src/FBPlacePickerViewController.m
@@ -121,6 +121,7 @@ - (NSString *)fieldsForRequestIncluding:(NSSet *)customFields, ...
[fields appendString:field];
}
+ [sortedFields release];
return fields;
}
@@ -225,11 +225,11 @@ + (FBCacheDescriptor*)cacheDescriptorWithLocationCoordinate:(CLLocationCoordinat
resultsLimit:(NSInteger)resultsLimit
fieldsForRequest:(NSSet*)fieldsForRequest {
- return [[FBPlacePickerCacheDescriptor alloc] initWithLocationCoordinate:locationCoordinate
- radiusInMeters:radiusInMeters
- searchText:searchText
- resultsLimit:resultsLimit
- fieldsForRequest:fieldsForRequest];
+ return [[[FBPlacePickerCacheDescriptor alloc] initWithLocationCoordinate:locationCoordinate
+ radiusInMeters:radiusInMeters
+ searchText:searchText
+ resultsLimit:resultsLimit
+ fieldsForRequest:fieldsForRequest] autorelease];
}
#pragma mark - private methods

0 comments on commit e8b33e2

Please sign in to comment.